How to use NSPredicate with Key-Paths (and ALL)?
- by Konstantin
Taking example from Apple docs using predicates with Key-Paths
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"ANY employees.firstName like 'Matthew'"];
Now, assume the employees has a bool field "isGood". The question: how do I select just those entities, having ALL of employees isGood==TRUE?
I tried but failed with following…