Closed Thomas101 closed 10 years ago
filterEntriesUsingPredicateForObjects: fails when you remove an item from the dictionary. Comes up with an index of out of range exception. You can get the error yourself by running the following...
M13MutableOrderedDictionary* d = [[M13MutableOrderedDictionary alloc] init]; [d addObject:@"a" pairedWithKey:@"a"]; [d addObject:@"b" pairedWithKey:@"b"]; [d addObject:@"c" pairedWithKey:@"c"]; NSPredicate* p = [NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) { return NO; }]; [d filterEntriesUsingPredicateForObjects:p];
Thanks! (:
filterEntriesUsingPredicateForObjects: fails when you remove an item from the dictionary. Comes up with an index of out of range exception. You can get the error yourself by running the following...
Thanks! (: