Revision: 28957 http://sourceforge.net/p/bibdesk/svn/28957 Author: hofman Date: 2024-10-15 15:22:30 +0000 (Tue, 15 Oct 2024) Log Message: ----------- use mutable dictionary for old categoy group, BibAuthor uses trivial copy
Modified Paths: -------------- trunk/bibdesk/BibDocument_Groups.m Modified: trunk/bibdesk/BibDocument_Groups.m =================================================================== --- trunk/bibdesk/BibDocument_Groups.m 2024-10-15 14:25:36 UTC (rev 28956) +++ trunk/bibdesk/BibDocument_Groups.m 2024-10-15 15:22:30 UTC (rev 28957) @@ -468,12 +468,12 @@ NSHashTable *hashTable = [[NSHashTable alloc] initWithPointerFunctions:pointerFunctions capacity:0]; CFMutableBagRef bag = CFBagCreateMutable(kCFAllocatorDefault, 0, &bagCallBacks); - NSMapTable *oldGroups = nil; + NSMutableDictionary *oldGroups = nil; BDSKCategoryGroup *oldEmptyGroup = nil; BDSKCategoryGroup *group = [[parent categoryGroups] firstObject]; if ([groupField isEqualToString:[group key]] && isPersonField == [[group name] isKindOfClass:[BibAuthor class]]) { - oldGroups = [NSMapTable strongToStrongObjectsMapTable]; + oldGroups = [[NSMutableDictionary alloc] init]; for (BDSKCategoryGroup *aGroup in [parent categoryGroups]) { // don't reuse groups with invalidated authors if ([aGroup isEmpty]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit