Revision: 14894
          http://sourceforge.net/p/skim-app/code/14894
Author:   hofman
Date:     2025-01-28 10:36:19 +0000 (Tue, 28 Jan 2025)
Log Message:
-----------
Should not be necessary to povide default implementations for interiorColor and 
fieldName. Latter is always defined in 10.13+, former only in 10.14+, but only 
used after checking for note class (through hasInteriorColor)

Modified Paths:
--------------
    trunk/PDFAnnotation_SKExtensions.h
    trunk/PDFAnnotation_SKExtensions.m

Modified: trunk/PDFAnnotation_SKExtensions.h
===================================================================
--- trunk/PDFAnnotation_SKExtensions.h  2025-01-27 17:11:53 UTC (rev 14893)
+++ trunk/PDFAnnotation_SKExtensions.h  2025-01-28 10:36:19 UTC (rev 14894)
@@ -169,9 +169,4 @@
 
 @end
 
-@interface PDFAnnotation (SKDefaultExtensions)
-@property (nonatomic, nullable, readonly) NSColor *interiorColor;
-@property (nonatomic, nullable, readonly) NSString *fieldName;
-@end
-
 NS_ASSUME_NONNULL_END

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2025-01-27 17:11:53 UTC (rev 14893)
+++ trunk/PDFAnnotation_SKExtensions.m  2025-01-28 10:36:19 UTC (rev 14894)
@@ -80,17 +80,6 @@
 
 @implementation PDFAnnotation (SKExtensions)
 
-- (NSColor *)fallback_interiorColor { return nil; }
-
-- (NSString *)fallback_fieldName {
-    return [self valueForAnnotationKey:@"/T"];
-}
-
-+ (void)load {
-    SKAddInstanceMethodImplementationFromSelector(self, 
@selector(interiorColor), @selector(fallback_interiorColor));
-    SKAddInstanceMethodImplementationFromSelector(self, @selector(fieldName), 
@selector(fallback_fieldName));
-}
-
 + (NSArray *)readableTypesForPasteboard:(NSPasteboard *)pasteboard {
     return @[SKPasteboardTypeSkimNote];
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to