Revision: 14625
http://sourceforge.net/p/skim-app/code/14625
Author: hofman
Date: 2024-11-02 15:04:31 +0000 (Sat, 02 Nov 2024)
Log Message:
-----------
revert previous commit, use ivar for drawsImage also on iOS
Modified Paths:
--------------
trunk/SkimNotes/SKNPDFAnnotationNote.h
trunk/SkimNotes/SKNPDFAnnotationNote.m
Modified: trunk/SkimNotes/SKNPDFAnnotationNote.h
===================================================================
--- trunk/SkimNotes/SKNPDFAnnotationNote.h 2024-11-01 23:28:34 UTC (rev
14624)
+++ trunk/SkimNotes/SKNPDFAnnotationNote.h 2024-11-02 15:04:31 UTC (rev
14625)
@@ -87,8 +87,8 @@
NSString *_string;
PDFKitPlatformImage *_image;
NSAttributedString *_text;
+ BOOL _drawsImage;
#if !defined(PDFKIT_PLATFORM_IOS)
- BOOL _drawsImage;
NSTextStorage *_textStorage;
NSArray *_texts;
#endif
Modified: trunk/SkimNotes/SKNPDFAnnotationNote.m
===================================================================
--- trunk/SkimNotes/SKNPDFAnnotationNote.m 2024-11-01 23:28:34 UTC (rev
14624)
+++ trunk/SkimNotes/SKNPDFAnnotationNote.m 2024-11-02 15:04:31 UTC (rev
14625)
@@ -83,10 +83,8 @@
@synthesize string = _string;
@synthesize text = _text;
@synthesize image = _image;
-#if defined(PDFKIT_PLATFORM_IOS)
-@dynamic drawsImage;
-#else
@synthesize drawsImage = _drawsImage;
+#if !defined(PDFKIT_PLATFORM_IOS)
@dynamic mutableText;
@synthesize texts = _texts;
#endif
@@ -154,18 +152,10 @@
return SKNNoteString;
}
-#if defined(PDFKIT_PLATFORM_IOS)
-- (BOOL)drawsImage {
- return [[self valueForAnnotationKey:@"/Subtype"]
isEqualToString:@"/Stamp"];
-}
-#endif
-
- (void)setDrawsImage:(BOOL)drawsImage {
-#if !defined(PDFKIT_PLATFORM_IOS)
_drawsImage = drawsImage;
if ([self respondsToSelector:@selector(setValue:forAnnotationKey:)])
-#endif
- [self setValue:drawsImage ? @"/Stamp" : @"/Text"
forAnnotationKey:@"/Subtype"];
+ [self setValue:drawsImage ? @"/Stamp" : @"/Text"
forAnnotationKey:@"/Subtype"];
}
- (void)setString:(NSString *)string {
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