Revision: 16604
http://sourceforge.net/p/skim-app/code/16604
Author: hofman
Date: 2026-10-04 15:49:31 +0000 (Sun, 04 Oct 2026)
Log Message:
-----------
only call init to get rid of annotation when supporting 10.11-
Modified Paths:
--------------
trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
Modified: trunk/SkimNotes/PDFAnnotation_SKNExtensions.m
===================================================================
--- trunk/SkimNotes/PDFAnnotation_SKNExtensions.m 2026-10-04 15:28:36 UTC
(rev 16603)
+++ trunk/SkimNotes/PDFAnnotation_SKNExtensions.m 2026-10-04 15:49:31 UTC
(rev 16604)
@@ -336,7 +336,9 @@
// possibly replace by a subclass
Class annotationClass = SKNAnnotationClassForType(type);
if ([self isMemberOfClass:annotationClass] == NO) {
+#if !defined(PDFKIT_PLATFORM_IOS) && (!defined(MAC_OS_X_VERSION_10_12) ||
MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12)
self = [self init];
+#endif
self = [[annotationClass alloc] initSkimNoteWithBounds:bounds
forType:type];
return self;
}
@@ -394,7 +396,9 @@
annotationClass = SKNAnnotationClassForWidgetType([[dict
objectForKey:SKNPDFAnnotationWidgetTypeKey] integerValue]);
#endif
if ([self isMemberOfClass:annotationClass] == NO) {
+#if !defined(PDFKIT_PLATFORM_IOS) && (!defined(MAC_OS_X_VERSION_10_12) ||
MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12)
self = [self init];
+#endif
self = [[annotationClass alloc] initSkimNoteWithProperties:dict];
return self;
}
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