Revision: 22544
http://sourceforge.net/p/bibdesk/svn/22544
Author: hofman
Date: 2018-08-29 21:14:42 +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/BDSKFileMatcher.m
trunk/bibdesk/BDSKNotesWindowController.m
trunk/bibdesk/BibDocument.m
Modified: trunk/bibdesk/BDSKFileMatcher.m
===================================================================
--- trunk/bibdesk/BDSKFileMatcher.m 2018-08-29 21:06:20 UTC (rev 22543)
+++ trunk/bibdesk/BDSKFileMatcher.m 2018-08-29 21:14:42 UTC (rev 22544)
@@ -125,6 +125,9 @@
[self setWindowFrameAutosaveName:@"Orphaned File Matcher Panel"];
+ if ([outlineView
respondsToSelector:@selector(setStronglyReferencesItems:)])
+ [outlineView setStronglyReferencesItems:YES];
+
[outlineView setAutosaveExpandedItems:YES];
[outlineView setAutoresizesOutlineColumn:NO];
Modified: trunk/bibdesk/BDSKNotesWindowController.m
===================================================================
--- trunk/bibdesk/BDSKNotesWindowController.m 2018-08-29 21:06:20 UTC (rev
22543)
+++ trunk/bibdesk/BDSKNotesWindowController.m 2018-08-29 21:14:42 UTC (rev
22544)
@@ -99,6 +99,10 @@
[outlineView setDraggingSourceOperationMask:NSDragOperationEvery
forLocal:YES];
[outlineView setDraggingSourceOperationMask:NSDragOperationCopy
forLocal:NO];
+ if ([outlineView
respondsToSelector:@selector(setStronglyReferencesItems:)]) {
+ [outlineView setStronglyReferencesItems:YES];
+ }
+
[tokenField setTokenizingCharacterSet:[NSCharacterSet
whitespaceCharacterSet]];
}
Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2018-08-29 21:06:20 UTC (rev 22543)
+++ trunk/bibdesk/BibDocument.m 2018-08-29 21:14:42 UTC (rev 22544)
@@ -385,6 +385,9 @@
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
{
+ if ([groupOutlineView
respondsToSelector:@selector(setStronglyReferencesItems:)])
+ [groupOutlineView setStronglyReferencesItems:YES];
+
[groupOutlineView expandItem:[groupOutlineView itemAtRow:0]];
[self selectLibraryGroup:nil];
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