Revision: 22543
          http://sourceforge.net/p/bibdesk/svn/22543
Author:   hofman
Date:     2018-08-29 21:06:20 +0000 (Wed, 29 Aug 2018)
Log Message:
-----------
strongly reference items in outline view in export prefs if available, or 
reloading will lead to a crash

Modified Paths:
--------------
    trunk/bibdesk/BDSKCompatibility.h
    trunk/bibdesk/BibPref_Export.m

Modified: trunk/bibdesk/BDSKCompatibility.h
===================================================================
--- trunk/bibdesk/BDSKCompatibility.h   2018-08-29 12:08:09 UTC (rev 22542)
+++ trunk/bibdesk/BDSKCompatibility.h   2018-08-29 21:06:20 UTC (rev 22543)
@@ -125,4 +125,9 @@
 - (void)setTabbingMode:(NSWindowTabbingMode)mode;
 @end
 
+@interface NSOutlineView (SKSierraDeclarations)
+- (BOOL)stronglyReferencesItems;
+- (void)setStronglyReferencesItems:(BOOL)flag;
+@end
+
 #endif

Modified: trunk/bibdesk/BibPref_Export.m
===================================================================
--- trunk/bibdesk/BibPref_Export.m      2018-08-29 12:08:09 UTC (rev 22542)
+++ trunk/bibdesk/BibPref_Export.m      2018-08-29 21:06:20 UTC (rev 22543)
@@ -95,6 +95,9 @@
     [outlineView setDoubleAction:@selector(chooseFileDoubleAction:)];
     [outlineView setTarget:self];
     
+    if ([outlineView 
respondsToSelector:@selector(setStronglyReferencesItems:)])
+        [outlineView setStronglyReferencesItems:YES];
+    
     [self updateUI];
 }
 
@@ -127,7 +130,7 @@
 - (void)setItemNodes:(NSArray *)array;
 {
     if(array != itemNodes){
-        [itemNodes autorelease];
+        [itemNodes release];
         itemNodes = [array mutableCopy];
     }
 }

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to