Revision: 29231 http://sourceforge.net/p/bibdesk/svn/29231 Author: hofman Date: 2025-04-28 19:01:44 +0000 (Mon, 28 Apr 2025) Log Message: ----------- make class method to create a new search group server private
Modified Paths: -------------- trunk/bibdesk/BDSKSearchGroup.h trunk/bibdesk/BDSKSearchGroup.m Modified: trunk/bibdesk/BDSKSearchGroup.h =================================================================== --- trunk/bibdesk/BDSKSearchGroup.h 2025-04-28 18:59:17 UTC (rev 29230) +++ trunk/bibdesk/BDSKSearchGroup.h 2025-04-28 19:01:44 UTC (rev 29231) @@ -94,8 +94,6 @@ + (NSDictionary *)dictionaryWithBdsksearchURL:(NSURL *)bdsksearchURL; -+ (id<BDSKSearchGroupServer>)copyServerWithGroup:(id<BDSKSearchGroup>)group serverInfo:(BDSKServerInfo *)info; - @end #pragma mark - Modified: trunk/bibdesk/BDSKSearchGroup.m =================================================================== --- trunk/bibdesk/BDSKSearchGroup.m 2025-04-28 18:59:17 UTC (rev 29230) +++ trunk/bibdesk/BDSKSearchGroup.m 2025-04-28 19:01:44 UTC (rev 29231) @@ -65,6 +65,7 @@ static NSMapTable *BDSKSearchGroupURLQueryKeys = nil; @interface BDSKSearchGroup () ++ (id<BDSKSearchGroupServer>)newServerWithGroup:(id<BDSKSearchGroup>)group serverInfo:(BDSKServerInfo *)info; - (void)resetServerWithInfo:(BDSKServerInfo *)info; @end @@ -251,7 +252,7 @@ - (void)resetServerWithInfo:(BDSKServerInfo *)info { [server terminate]; - server = [[self class] copyServerWithGroup:self serverInfo:info]; + server = [[self class] newServerWithGroup:self serverInfo:info]; } - (void)search; @@ -426,7 +427,7 @@ return dictionary; } -+ (id<BDSKSearchGroupServer>)copyServerWithGroup:(id<BDSKSearchGroup>)group serverInfo:(BDSKServerInfo *)info { ++ (id<BDSKSearchGroupServer>)newServerWithGroup:(id<BDSKSearchGroup>)group serverInfo:(BDSKServerInfo *)info { NSString *aType = [info type]; Class serverClass = Nil; if ([aType isEqualToString:BDSKSearchGroupEntrez]) @@ -470,7 +471,7 @@ } - (void)searchUsingSearchTerm:(NSString *)searchTerm serverInfo:(BDSKServerInfo *)serverInfo completionHandler:(void(^)(NSArray *publications))aCompletionHandler { - server = [BDSKSearchGroup copyServerWithGroup:self serverInfo:serverInfo]; + server = [BDSKSearchGroup newServerWithGroup:self serverInfo:serverInfo]; completionHandler = [aCompletionHandler copy]; 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