Revision: 16048
          http://sourceforge.net/p/skim-app/code/16048
Author:   hofman
Date:     2026-02-09 16:25:06 +0000 (Mon, 09 Feb 2026)
Log Message:
-----------
make associated object nonatomic

Modified Paths:
--------------
    trunk/PDFAnnotationMarkup_SKExtensions.m

Modified: trunk/PDFAnnotationMarkup_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationMarkup_SKExtensions.m    2026-02-08 16:44:49 UTC (rev 
16047)
+++ trunk/PDFAnnotationMarkup_SKExtensions.m    2026-02-09 16:25:06 UTC (rev 
16048)
@@ -272,7 +272,7 @@
     SKNoteText *noteText = objc_getAssociatedObject(self, &SKNoteTextKey);
     if (noteText == nil) {
         noteText = [[SKNoteText alloc] initWithNote:self];
-        objc_setAssociatedObject(self, &SKNoteTextKey, noteText, 
OBJC_ASSOCIATION_RETAIN);
+        objc_setAssociatedObject(self, &SKNoteTextKey, noteText, 
OBJC_ASSOCIATION_RETAIN_NONATOMIC);
     }
     return noteText;
 }
@@ -283,7 +283,7 @@
     NSString *textString = objc_getAssociatedObject(self, &SKTextStringKey);
     if (textString == nil) {
         textString = [[self selection] cleanedString] ?: @"";
-        objc_setAssociatedObject(self, &SKTextStringKey, textString, 
OBJC_ASSOCIATION_RETAIN);
+        objc_setAssociatedObject(self, &SKTextStringKey, textString, 
OBJC_ASSOCIATION_RETAIN_NONATOMIC);
     }
     return textString;
 }
@@ -302,7 +302,7 @@
     NSString *selString = [[self selectionWithPage:page] cleanedString];
     if ([selString length]) {
         // page should be future [self page] and textString will not have been 
called
-        objc_setAssociatedObject(self, &SKTextStringKey, selString, 
OBJC_ASSOCIATION_RETAIN);
+        objc_setAssociatedObject(self, &SKTextStringKey, selString, 
OBJC_ASSOCIATION_RETAIN_NONATOMIC);
         [self setString:selString];
     }
 }

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