Revision: 27872
          http://sourceforge.net/p/bibdesk/svn/27872
Author:   hofman
Date:     2022-09-07 22:50:08 +0000 (Wed, 07 Sep 2022)
Log Message:
-----------
synthesize private setters for archived data

Modified Paths:
--------------
    trunk/bibdesk/BDSKSharingClient.m

Modified: trunk/bibdesk/BDSKSharingClient.m
===================================================================
--- trunk/bibdesk/BDSKSharingClient.m   2022-09-07 22:21:56 UTC (rev 27871)
+++ trunk/bibdesk/BDSKSharingClient.m   2022-09-07 22:50:08 UTC (rev 27872)
@@ -80,6 +80,15 @@
 
 #pragma mark -
 
+@interface BDSKSharingClient ()
+
+@property (nonatomic, retain) NSData *archivedPublications;
+@property (nonatomic, retain) NSData *archivedMacros;
+
+@end
+
+#pragma mark -
+
 @implementation BDSKSharingClient
 
 @synthesize needsUpdate, archivedPublications, archivedMacros, name;
@@ -122,18 +131,9 @@
 }
 
 - (void)setArchivedPublicationsAndMacros:(NSDictionary *)dictionary {
-    NSData *newArchivedPublications = [dictionary 
objectForKey:BDSKSharedArchivedDataKey];
-    NSData *newArchivedMacros = [dictionary 
objectForKey:BDSKSharedArchivedMacroDataKey];
+    [self setArchivedPublications:[dictionary 
objectForKey:BDSKSharedArchivedDataKey]];
+    [self setArchivedMacros:[dictionary 
objectForKey:BDSKSharedArchivedMacroDataKey]];
     
-    if (archivedPublications != newArchivedPublications) {
-        [archivedPublications release];
-        archivedPublications = [newArchivedPublications retain];
-    }
-    if (archivedMacros != newArchivedMacros) {
-        [archivedMacros release];
-        archivedMacros = [newArchivedMacros retain];
-    }
-    
     [self setNeedsUpdate:NO];
     
     // we need to do this after setting the archivedPublications but before 
sending the notification

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to