Revision: 22545
          http://sourceforge.net/p/bibdesk/svn/22545
Author:   hofman
Date:     2018-08-29 21:22:58 +0000 (Wed, 29 Aug 2018)
Log Message:
-----------
strongly reference items in outline views, removing items may leave invalid 
items in the outline view

Modified Paths:
--------------
    trunk/bibdesk/BDSKBookmarkController.m
    trunk/bibdesk/BDSKSearchBookmarkController.m

Modified: trunk/bibdesk/BDSKBookmarkController.m
===================================================================
--- trunk/bibdesk/BDSKBookmarkController.m      2018-08-29 21:14:42 UTC (rev 
22544)
+++ trunk/bibdesk/BDSKBookmarkController.m      2018-08-29 21:22:58 UTC (rev 
22545)
@@ -120,6 +120,9 @@
     [self setWindowFrameAutosaveName:BDSKBookmarksWindowFrameAutosaveName];
     [outlineView setAutoresizesOutlineColumn:NO];
     [outlineView registerForDraggedTypes:[NSArray 
arrayWithObjects:BDSKPasteboardBookmarkRows, (NSString *)kUTTypeURL, 
NSURLPboardType, nil]];
+    if ([outlineView 
respondsToSelector:@selector(setStronglyReferencesItems:)])
+        [outlineView setStronglyReferencesItems:YES];
+    
 }
 
 - (BDSKBookmark *)bookmarkRoot {

Modified: trunk/bibdesk/BDSKSearchBookmarkController.m
===================================================================
--- trunk/bibdesk/BDSKSearchBookmarkController.m        2018-08-29 21:14:42 UTC 
(rev 22544)
+++ trunk/bibdesk/BDSKSearchBookmarkController.m        2018-08-29 21:22:58 UTC 
(rev 22545)
@@ -109,6 +109,8 @@
     [self setupToolbar];
     [self 
setWindowFrameAutosaveName:BDSKSearchBookmarksWindowFrameAutosaveName];
     [outlineView setAutoresizesOutlineColumn:NO];
+    if ([outlineView 
respondsToSelector:@selector(setStronglyReferencesItems:)])
+        [outlineView setStronglyReferencesItems:YES];
     [outlineView registerForDraggedTypes:[NSArray 
arrayWithObject:BDSKPasteboardTypeSearchBookmarkRows]];
     [outlineView setDoubleAction:@selector(editAction:)];
     [outlineView setTarget:self];

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