Revision: 27563
http://sourceforge.net/p/bibdesk/svn/27563
Author: hofman
Date: 2022-06-06 08:49:22 +0000 (Mon, 06 Jun 2022)
Log Message:
-----------
Remove pubs from files and notes search indexes on WillRemove notification
rather than DidRemove notification, as the search index info may depend on the
pubs having an owner
Modified Paths:
--------------
trunk/bibdesk/BDSKFileSearchIndex.m
trunk/bibdesk/BDSKNotesSearchIndex.m
Modified: trunk/bibdesk/BDSKFileSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.m 2022-06-06 06:30:18 UTC (rev 27562)
+++ trunk/bibdesk/BDSKFileSearchIndex.m 2022-06-06 08:49:22 UTC (rev 27563)
@@ -117,7 +117,7 @@
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self
selector:@selector(processInfoChangedNotification:)
name:BDSKFileSearchIndexInfoChangedNotification object:owner];
[nc addObserver:self selector:@selector(processAddItemNotification:)
name:BDSKDocumentDidAddItemNotification object:owner];
- [nc addObserver:self selector:@selector(processDelItemNotification:)
name:BDSKDocumentDidRemoveItemNotification object:owner];
+ [nc addObserver:self selector:@selector(processDelItemNotification:)
name:BDSKDocumentWillRemoveItemNotification object:owner];
}
Modified: trunk/bibdesk/BDSKNotesSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKNotesSearchIndex.m 2022-06-06 06:30:18 UTC (rev
27562)
+++ trunk/bibdesk/BDSKNotesSearchIndex.m 2022-06-06 08:49:22 UTC (rev
27563)
@@ -77,7 +77,7 @@
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self selector:@selector(processAddItemNotification:)
name:BDSKFileSearchIndexInfoChangedNotification object:owner];
[nc addObserver:self selector:@selector(processAddItemNotification:)
name:BDSKDocumentDidAddItemNotification object:owner];
- [nc addObserver:self selector:@selector(processDelItemNotification:)
name:BDSKDocumentDidRemoveItemNotification object:owner];
+ [nc addObserver:self selector:@selector(processDelItemNotification:)
name:BDSKDocumentWillRemoveItemNotification object:owner];
}
return self;
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