I have an NSArray of objects, which have a property id.
I then have another NSArray with a selection of ids.
I need to get all the objects in the first array which have the ids listed in the second array.
Is it possible to do this without for loops (well 1 for loop is ok, but I’d like to avoid it). I know how to do this with 2 for loops, but this seems very inefficient. So basically I’m looking for the most efficient way.
(The Id is an NSURL btw, so it can’t be anything integer specific)
No loops!
Well, no loops that you write. There are probably loops inside
filteredArrayUsingPredicate:.