Revision: 29052
http://sourceforge.net/p/bibdesk/svn/29052
Author: hofman
Date: 2025-02-23 15:10:59 +0000 (Sun, 23 Feb 2025)
Log Message:
-----------
fix key for generic groups for scripting
Modified Paths:
--------------
trunk/bibdesk/BDSKGroup+Scripting.m
trunk/bibdesk/BibDocument+Scripting.m
Modified: trunk/bibdesk/BDSKGroup+Scripting.m
===================================================================
--- trunk/bibdesk/BDSKGroup+Scripting.m 2025-02-23 10:28:32 UTC (rev 29051)
+++ trunk/bibdesk/BDSKGroup+Scripting.m 2025-02-23 15:10:59 UTC (rev 29052)
@@ -72,7 +72,7 @@
- (NSScriptObjectSpecifier *)objectSpecifier {
BibDocument *doc = (BibDocument *)[self document];
NSScriptObjectSpecifier *containerRef = [doc objectSpecifier];
- return [[NSUniqueIDSpecifier alloc]
initWithContainerClassDescription:[containerRef keyClassDescription]
containerSpecifier:containerRef key:@"groups" uniqueID:[self uniqueID]];
+ return [[NSUniqueIDSpecifier alloc]
initWithContainerClassDescription:[containerRef keyClassDescription]
containerSpecifier:containerRef key:@"scriptingGroups" uniqueID:[self
uniqueID]];
}
- (id)newScriptingObjectOfClass:(Class)class forValueForKey:(NSString *)key
withContentsValue:(id)contentsValue properties:(NSDictionary *)properties {
Modified: trunk/bibdesk/BibDocument+Scripting.m
===================================================================
--- trunk/bibdesk/BibDocument+Scripting.m 2025-02-23 10:28:32 UTC (rev
29051)
+++ trunk/bibdesk/BibDocument+Scripting.m 2025-02-23 15:10:59 UTC (rev
29052)
@@ -706,7 +706,7 @@
static NSSet *groupKeys() {
static NSSet *groupKeys = nil;
if (groupKeys == nil)
- groupKeys = [NSSet setWithObjects:@"groups", @"staticGroups",
@"smartGroups", @"fieldGroups", @"externalFileGroups", @"scriptGroups",
@"searchGroups", @"sharedGroups", @"libraryGroups", @"lastImportGroups",
@"webGroups", nil];
+ groupKeys = [NSSet setWithObjects:@"scriptingGroups", @"staticGroups",
@"smartGroups", @"fieldGroups", @"externalFileGroups", @"scriptGroups",
@"searchGroups", @"sharedGroups", @"libraryGroups", @"lastImportGroups",
@"webGroups", nil];
return groupKeys;
}
@@ -789,7 +789,7 @@
// We will traverse the range and pick the objects we want.
// We do this by getting each object and seeing if it actually
appears in the real key that we are trying to evaluate in.
NSMutableArray *result = [NSMutableArray array];
- BOOL keyIsGroups = [key isEqual:@"groups"];
+ BOOL keyIsGroups = [key isEqual:@"scriptingGroups"];
NSArray *rangeKeyObjects = (keyIsGroups ? nil : [self
valueForKey:key]);
id curObj;
NSUInteger curKeyIndex;
@@ -856,7 +856,7 @@
// We will start either right before or right after and look for
an object that matches the type we want.
// We do this by getting each object and seeing if it actually
appears in the real key that we are trying to evaluate in.
NSMutableArray *result = [NSMutableArray array];
- BOOL keyIsGroups = [key isEqual:@"groups"];
+ BOOL keyIsGroups = [key isEqual:@"scriptingGroups"];
NSArray *relKeyObjects = (keyIsGroups ? nil : [self
valueForKey:key]);
id curObj;
NSUInteger curKeyIndex;
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