Revision: 13832
http://sourceforge.net/p/skim-app/code/13832
Author: hofman
Date: 2023-12-05 15:11:07 +0000 (Tue, 05 Dec 2023)
Log Message:
-----------
only implement drawing override when we support the versions for which it is
needed
Modified Paths:
--------------
trunk/SkimNotes/SKNPDFAnnotationNote.m
Modified: trunk/SkimNotes/SKNPDFAnnotationNote.m
===================================================================
--- trunk/SkimNotes/SKNPDFAnnotationNote.m 2023-12-05 14:52:53 UTC (rev
13831)
+++ trunk/SkimNotes/SKNPDFAnnotationNote.m 2023-12-05 15:11:07 UTC (rev
13832)
@@ -48,6 +48,7 @@
#import <CoreGraphics/CoreGraphics.h>
+#if !defined(MAC_OS_X_VERSION_10_15) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_15
static inline void drawIconComment(CGContextRef context, NSRect bounds);
static inline void drawIconKey(CGContextRef context, NSRect bounds);
static inline void drawIconNote(CGContextRef context, NSRect bounds);
@@ -67,6 +68,7 @@
- (void)transformContext:(CGContextRef)context forBox:(PDFDisplayBox)box;
@end
#endif
+#endif
@interface SKNPDFAnnotationNote ()
@property (nonatomic, readonly) NSTextStorage *mutableText;
@@ -197,7 +199,9 @@
return _textStorage;
}
-// private method called by -drawWithBox: before to 10.12, made public on
10.12, now calling -drawWithBox:
+
+#if !defined(MAC_OS_X_VERSION_10_15) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_15
+
- (void)drawWithBox:(PDFDisplayBox)box inContext:(CGContextRef)context {
if (floor(NSAppKitVersionNumber) < SKNAppKitVersionNumber10_12 ||
floor(NSAppKitVersionNumber) > SKNAppKitVersionNumber10_14 || [self
hasAppearanceStream]) {
[super drawWithBox:box inContext:context];
@@ -235,9 +239,11 @@
#endif
+#endif
+
@end
-#if !defined(PDFKIT_PLATFORM_IOS)
+#if !defined(PDFKIT_PLATFORM_IOS) && (!defined(MAC_OS_X_VERSION_10_15) ||
MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_15)
static inline void drawIconComment(CGContextRef context, NSRect bounds) {
bounds = NSInsetRect(bounds, 0.5, 0.5);
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