From: <ho...@us...> - 2024-08-25 15:57:04
|
Revision: 28944 http://sourceforge.net/p/bibdesk/svn/28944 Author: hofman Date: 2024-08-25 15:57:02 +0000 (Sun, 25 Aug 2024) Log Message: ----------- Don't use NSPredicate for class objeccts Modified Paths: -------------- trunk/bibdesk/BDSKWebParser.m Modified: trunk/bibdesk/BDSKWebParser.m =================================================================== --- trunk/bibdesk/BDSKWebParser.m 2024-08-25 14:54:34 UTC (rev 28943) +++ trunk/bibdesk/BDSKWebParser.m 2024-08-25 15:57:02 UTC (rev 28944) @@ -144,7 +144,11 @@ } + (NSArray *)parsersForFeature:(BDSKParserFeature)feature { - return [[self parsers] filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"feature = %lu", (unsigned long)feature]]; + NSMutableArray *parsers = [NSMutableArray array]; + for (Class parserClass in [self parsers]) + if ([parserClass feature] == feature) + [parsers addObject:parserClass]; + return parsers; } + (NSArray *)publicParsers { return [self parsersForFeature:BDSKParserFeaturePublic]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |