Revision: 28989 http://sourceforge.net/p/bibdesk/svn/28989 Author: hofman Date: 2025-02-06 16:43:59 +0000 (Thu, 06 Feb 2025) Log Message: ----------- rename method
Modified Paths: -------------- trunk/bibdesk/BDSKWebGroup.h trunk/bibdesk/BDSKWebGroup.m trunk/bibdesk/BibDocument+Scripting.m Modified: trunk/bibdesk/BDSKWebGroup.h =================================================================== --- trunk/bibdesk/BDSKWebGroup.h 2025-02-06 15:55:47 UTC (rev 28988) +++ trunk/bibdesk/BDSKWebGroup.h 2025-02-06 16:43:59 UTC (rev 28989) @@ -67,6 +67,6 @@ id strongSelf; } -+ (void)itemsFromURL:(NSURL *)aURL macroResolver:(BDSKMacroResolver *)macroResolver completionHandler:(void(^)(NSArray *publications))completionHandler; ++ (void)searchItemsFromURL:(NSURL *)aURL macroResolver:(BDSKMacroResolver *)macroResolver completionHandler:(void(^)(NSArray *publications))completionHandler; @end Modified: trunk/bibdesk/BDSKWebGroup.m =================================================================== --- trunk/bibdesk/BDSKWebGroup.m 2025-02-06 15:55:47 UTC (rev 28988) +++ trunk/bibdesk/BDSKWebGroup.m 2025-02-06 16:43:59 UTC (rev 28989) @@ -413,7 +413,7 @@ } } -- (void)itemsFromURL:(NSURL *)aURL completionHandler:(void(^)(NSArray *publications))aCompletionHandler { +- (void)searchItemsFromURL:(NSURL *)aURL completionHandler:(void(^)(NSArray *publications))aCompletionHandler { completionHandler = [aCompletionHandler copy]; @@ -427,9 +427,9 @@ [self handleGroupUpdatedNotification:nil]; } -+ (void)itemsFromURL:(NSURL *)aURL macroResolver:(BDSKMacroResolver *)macroResolver completionHandler:(void(^)(NSArray *publications))completionHandler { ++ (void)searchItemsFromURL:(NSURL *)aURL macroResolver:(BDSKMacroResolver *)macroResolver completionHandler:(void(^)(NSArray *publications))completionHandler { BDSKWebSearch *search = [[self alloc] initWithMacroResolver:macroResolver]; - [search itemsFromURL:aURL completionHandler:completionHandler]; + [search searchItemsFromURL:aURL completionHandler:completionHandler]; } @end Modified: trunk/bibdesk/BibDocument+Scripting.m =================================================================== --- trunk/bibdesk/BibDocument+Scripting.m 2025-02-06 15:55:47 UTC (rev 28988) +++ trunk/bibdesk/BibDocument+Scripting.m 2025-02-06 16:43:59 UTC (rev 28989) @@ -1183,7 +1183,7 @@ else handler([BDSKStringParser itemsFromString:source ofType:BDSKStringTypeUnknown owner:self error:NULL]); } else if ([source isKindOfClass:[NSURL class]]) { - [BDSKWebSearch itemsFromURL:source macroResolver:[self macroResolver] completionHandler:handler]; + [BDSKWebSearch searchItemsFromURL:source macroResolver:[self macroResolver] completionHandler:handler]; } else if (searchTerm) { [BDSKGroupSearch searchUsingSearchTerm:searchTerm serverInfo:serverInfo macroResolver:[self macroResolver] completionHandler:handler]; } else if ([url isFileURL]) { 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