I have 2 arrays. One is a large static group of 600 objects, the other is a small varying group of 10 objects.
I want to take any common objects between the two grou
The easiest (but not necessarily fastest (?)) way would be something like
NSMutableSet *intersection = [NSMutableSet setWithArray:smallArray];
[intersection intersectSet:[NSSet setWithArray:bigArray];
NSArray *result = [NSArray arrayWithSet:intersection];
You'll have to sort the resulting array again, however.