Revision: 27684
http://sourceforge.net/p/bibdesk/svn/27684
Author: hofman
Date: 2022-07-03 23:27:25 +0000 (Sun, 03 Jul 2022)
Log Message:
-----------
get userInfo only when needed
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2022-07-03 23:26:01 UTC (rev 27683)
+++ trunk/bibdesk/BibDocument_UI.m 2022-07-03 23:27:25 UTC (rev 27684)
@@ -1399,8 +1399,6 @@
- (void)handleBibItemChangedNotification:(NSNotification *)notification{
- // note: userInfo is nil if -[BibItem setPubFields:] is called
- NSDictionary *userInfo = [notification userInfo];
BibItem *pub = [notification object];
// see if it's ours
@@ -1411,6 +1409,8 @@
changedPublications = [[NSMutableSet alloc] init];
[changedPublications addObject:pub];
+ // note: userInfo is nil if -[BibItem setPubFields:] is called
+ NSDictionary *userInfo = [notification userInfo];
NSString *changedKey = [userInfo objectForKey:BDSKBibItemKeyKey];
NSString *key = [pub citeKey];
NSString *oldKey = nil;
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