Revision: 29064
          http://sourceforge.net/p/bibdesk/svn/29064
Author:   hofman
Date:     2025-02-24 18:18:10 +0000 (Mon, 24 Feb 2025)
Log Message:
-----------
error editor name is essentially nonnull

Modified Paths:
--------------
    trunk/bibdesk/BDSKErrorEditor.h
    trunk/bibdesk/BDSKErrorEditor.m

Modified: trunk/bibdesk/BDSKErrorEditor.h
===================================================================
--- trunk/bibdesk/BDSKErrorEditor.h     2025-02-24 18:09:27 UTC (rev 29063)
+++ trunk/bibdesk/BDSKErrorEditor.h     2025-02-24 18:18:10 UTC (rev 29064)
@@ -78,7 +78,7 @@
 @property (nonatomic, nullable, copy) NSArray *errors;
 
 @property (nonatomic, nullable, strong) NSURL *fileURL;
-@property (nonatomic, nullable, readonly) NSString *displayName;
+@property (nonatomic, readonly) NSString *displayName;
 @property (nonatomic, nullable, readonly) NSData *pasteDragData;
 @property (nonatomic, readonly, getter=isPasteDrag) BOOL pasteDrag;
 

Modified: trunk/bibdesk/BDSKErrorEditor.m
===================================================================
--- trunk/bibdesk/BDSKErrorEditor.m     2025-02-24 18:09:27 UTC (rev 29063)
+++ trunk/bibdesk/BDSKErrorEditor.m     2025-02-24 18:18:10 UTC (rev 29064)
@@ -180,12 +180,13 @@
 
 - (void)setManager:(BDSKErrorManager *)newManager {
     if(manager != newManager){
-        if(manager)
+        if (manager)
             [manager removeObserver:self forKeyPath:@"displayName" 
context:&BDSKErrorEditorObservationContext];
         manager = newManager;
-        [self updateDisplayName];
-        if(manager)
+        if (manager) {
+            [self updateDisplayName];
             [manager addObserver:self forKeyPath:@"displayName" options:0 
context:&BDSKErrorEditorObservationContext];
+        }
     }
 }
 

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to