Search through NSArray for string
I would like to search through my NSArray for a certain string. Example: NSArray has the objects: "dog", "cat", "fat dog", "thing", "another thing", "heck here's another thing" I want to search for the word "another" and put the results into one array, and have the other, non results, into another array that can be filtered further. Ken Aspeslagh Not tested so might have a syntax error, but you'll get the idea. NSArray* inputArray = [NSArray arrayWithObjects:@"dog", @"cat", @"fat dog", @"thing", @"another thing", @"heck here's another thing", nil]; NSMutableArray* containsAnother =