Reputation: 13
I have NSmutableArray
with 10,000 NSobjects, each NSobject has Name, Details and Location.
I want to Create a method which will search for A text in the Names, Details, and Locations of All Objects.
Upvotes: 0
Views: 136
Reputation: 996
You'll want to use NSPredicates for this. It's fast and doesn't require much work. Check out this blog post for implementation details: http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/
Upvotes: 1