Take the 2-minute tour ×  I'm using a UITextField as a search
field: The user can input multiple search values separated by
comma. By typing I want to find every custom object in my
NSArray that matches one of the search component.  My custom
objects have no properties (that can be used for the search).
Receiving a value I have to call [myObject
fieldForKey:@"username"].value;. Because of this I have to use
[NSPredicate predicateWithBlock] (or another way was not
possible for me).  My method for the search (will be called
whenever a character was changed in the TextField):
-(void)searchEntriesWithString:(NSString*)searchString {
NSArray *dataSource = [NSArray arrayWithArray:_allObjects];
searchString = [searchString
stringByReplacingOccurrencesOfString:@" " withString:@""];
NSArray *components = [searchString
componentsSeparatedByString:@","];     NSMutableArray
*predicates = [NSMutableArray array];     for (NSString *value
in components) {          return ( [[(MyObject*)evaluatedObject
fieldFo