Quick Explanation of SUBQUERY in NSPredicate Expression
And for people who don’t quite get what the documentation is saying, a SUBQUERY is essentially this: SUBQUERY(collection, variableName, predicateFormat) And could (simplistically) be implemented like this: id resultingCollection = …; //a new collection, either a mutable set or array NSMutableDictionary * substitutions = [NSMutableDictionary dictionary]; NSPredicate * p = [NSPredicate predicateWithFormat:predicateFormat]; for (id variable … Read more