How do you filter an NSMutable Array that contains core data?

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-05-07T12:54:30Z Indexed on 2010/05/07 12:58 UTC
Read the original article Hit count: 252

Filed under:
|
|

I have an array that it is populated by core data as follows.

NSMutableArray *mutableFetchResults = [CoreDataHelper getObjectsFromContext:@"Spot" :@"Name" :YES :managedObjectContext];

It looks like this in the console.

(entity: Spot; id: 0x4b7e580 ; data: { CityToProvince = 0x4b7dbd0 ; Description = "Friend"; Email = "[email protected]"; Age = 21; Name = "Adam"; Phone = "+44175240"; }),

How can i filter the array to remove anyone who is over a certain age? or use values in the array to make calculations?

Please help i have been stuck for ages on this. Code would be gratefully appreciated.

© Stack Overflow or respective owner

Related posts about nsmutablearray

Related posts about iphone