Revision: 29317
http://sourceforge.net/p/bibdesk/svn/29317
Author: hofman
Date: 2025-07-21 17:00:39 +0000 (Mon, 21 Jul 2025)
Log Message:
-----------
don't reset people when macros change as authors should not be expected to have
macros
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
trunk/bibdesk/BibItem.h
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2025-07-21 16:57:31 UTC (rev 29316)
+++ trunk/bibdesk/BibDocument_UI.m 2025-07-21 17:00:39 UTC (rev 29317)
@@ -1522,7 +1522,7 @@
if ([[[aNotification userInfo] objectForKey:BDSKMacroResolverTypeKey]
isEqualToString:BDSKMacroResolverSetType])
return; // this will be handled after loading finished
- [publications makeObjectsPerformSelector:@selector(resetGroupsAndPeople)];
+ [publications makeObjectsPerformSelector:@selector(resetGroups)];
// current group field may have changed its type (string->person)
[self updateFilteringGroups];
Modified: trunk/bibdesk/BibItem.h
===================================================================
--- trunk/bibdesk/BibItem.h 2025-07-21 16:57:31 UTC (rev 29316)
+++ trunk/bibdesk/BibItem.h 2025-07-21 17:00:39 UTC (rev 29317)
@@ -806,7 +806,7 @@
@property (nonatomic, readonly) NSURL *bdskURL;
-- (void)resetGroupsAndPeople;
+- (void)resetGroups;
@end
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2025-07-21 16:57:31 UTC (rev 29316)
+++ trunk/bibdesk/BibItem.m 2025-07-21 17:00:39 UTC (rev 29317)
@@ -529,11 +529,8 @@
}
}
-- (void)resetGroupsAndPeople{
+- (void)resetGroups{
[groups removeAllObjects];
- // these fields may change type, so our cached values should be discarded
- [[people allValues] setValue:nil forKey:@"publication"];
- people = nil;
}
#pragma mark Document
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