Revision: 16565
          http://sourceforge.net/p/skim-app/code/16565
Author:   hofman
Date:     2026-09-28 18:06:47 +0000 (Mon, 28 Sep 2026)
Log Message:
-----------
declare legacy initializer in separate category

Modified Paths:
--------------
    trunk/SkimNotes/PDFAnnotation_SKNExtensions.h

Modified: trunk/SkimNotes/PDFAnnotation_SKNExtensions.h
===================================================================
--- trunk/SkimNotes/PDFAnnotation_SKNExtensions.h       2026-09-28 18:01:07 UTC 
(rev 16564)
+++ trunk/SkimNotes/PDFAnnotation_SKNExtensions.h       2026-09-28 18:06:47 UTC 
(rev 16565)
@@ -299,17 +299,7 @@
 */
 @interface PDFAnnotation (SKNExtensions)
 
-#ifdef SKIMNOTES_USE_LEGACY_PDFANNOTATION_SUBCLASSES
 /*!
-    @abstract   Initializes a new Skim note annotation.  This is the 
designated initializer for a Skim note on macOS when using legacy 
<code>PDFAnnotation</code> subclasses.
-    @discussion This method can be implemented in subclasses to provide 
default properties for Skim notes.
-    @param      bounds The bounding box of the annotation, in page space.
-    @result     An initialized Skim note annotation instance, or 
<code>nil</code> if the object could not be initialized.
-*/
-- (nullable id)initSkimNoteWithBounds:(NSRect)bounds;
-#endif
-
-/*!
     @abstract   Initializes a new Skim note annotation.  This is the 
designated initializer for a Skim noteon iOS, or on macOS when not using legacy 
<code>PDFAnnotation</code> classes.
     @discussion On macOS when using legacsy <code>PDFAnnotation</code> 
classes, this returns a subclasses initialized with 
<code>initSkimNoteWithBounds:</code>.
     @param      bounds The bounding box of the annotation, in page space.
@@ -388,9 +378,20 @@
 #pragma mark -
 
 #ifdef SKIMNOTES_USE_LEGACY_PDFANNOTATION_SUBCLASSES
+
+@interface PDFAnnotation (SKNLegacyExtensions)
+/*!
+    @abstract   Initializes a new Skim note annotation.  This is the 
designated initializer for a Skim note on macOS when using legacy 
<code>PDFAnnotation</code> subclasses.
+    @discussion This method can be implemented in subclasses to provide 
default properties for Skim notes.
+    @param      bounds The bounding box of the annotation, in page space.
+    @result     An initialized Skim note annotation instance, or 
<code>nil</code> if the object could not be initialized.
+*/
+- (nullable id)initSkimNoteWithBounds:(NSRect)bounds;
+@end
+
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
-@interface PDFAnnotationMarkup (SKNOptional)
+@interface PDFAnnotationMarkup (SKNLegacyOptional)
 #pragma clang diagnostic pop
 /*!
     @abstract   Optional method to implement to return the default color to 
use for markup initialized with properties that do not contain a color.
@@ -400,6 +401,7 @@
 */
 + (NSColor *)defaultSkimNoteColorForMarkupType:(NSInteger)markupType;
 @end
+
 #endif
 
 #pragma mark -

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