I’m wondering if it’s possible to filter an NSArray with a NSPredicate using an array index value, ie
NSArray *completeArray = ...;
NSArray *filteredArray = [completeArray filteredArrayUsingPredicate:[NSPredicate
predicateWithFormat:@"ANY (arrayIndex < 5) && (Other conditions here)"];
I’m using core data, and cannot use a primary key or other identifiers for the objects.
use
subarrayWithRange:then filter the subarray