Revision: 28538
          http://sourceforge.net/p/bibdesk/svn/28538
Author:   hofman
Date:     2024-01-04 16:44:47 +0000 (Thu, 04 Jan 2024)
Log Message:
-----------
make statusBar strong as they may be swapped

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

Modified: trunk/bibdesk/BDSKEditor.h
===================================================================
--- trunk/bibdesk/BDSKEditor.h  2024-01-04 16:42:20 UTC (rev 28537)
+++ trunk/bibdesk/BDSKEditor.h  2024-01-04 16:44:47 UTC (rev 28538)
@@ -135,7 +135,7 @@
 @property (nonatomic, assign) IBOutlet NSPopUpButton *actionButton;
 @property (nonatomic, assign) IBOutlet NSButton *addFieldButton;
 @property (nonatomic, assign) IBOutlet NSMenu *contextMenu;
-@property (nonatomic, assign) IBOutlet BDSKStatusBar *statusBar;
+@property (nonatomic, strong) IBOutlet BDSKStatusBar *statusBar;
 @property (nonatomic, assign) IBOutlet NSButton *citeKeyWarningButton;
 @property (nonatomic, assign) IBOutlet NSTableView *authorTableView;
 @property (nonatomic, assign) IBOutlet FVFileView *fileView;

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2024-01-04 16:42:20 UTC (rev 28537)
+++ trunk/bibdesk/BDSKEditor.m  2024-01-04 16:44:47 UTC (rev 28538)
@@ -202,7 +202,6 @@
     [addFieldButton setEnabled:editorFlags.isEditable];
     
     // Setup the statusbar
-    [statusBar retain];
     [statusBar layoutSubtreeIfNeeded];
     [statusBar setDelegate:self];
     [statusBar setLeftMargin:NSMaxX([actionButton frame]) + 5.0];
@@ -331,6 +330,7 @@
 
 - (void)dealloc{
     [[NSNotificationCenter defaultCenter] removeObserver:self];
+    BDSKDESTROY(statusBar);
     BDSKDESTROY(publication);
     BDSKDESTROY(fields);
     BDSKDESTROY(addedFields);

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