[Solved] Objective-C Fast Enumeration: checking for BOOL
NSPredicate *predicate = [NSPredicate predicateWithFormat:@”wasRead = YES”]; NSArray *arr = [array filteredArrayUsingPredicate:predicate]; Can sort a thousand objects in 0.0004 seconds. Then just do: for (NSDictionary *object in arr) { //Statements } Edit: actually after further experimentation, using fast-enumeration is about four times faster, about 0.0001, which if scaled to 100000 objects can be much, much … Read more