Crash using Aggregate Operation: “ALL” in a Core Data iOS Application
I'm working on an iphone application and I have a simple many-to-many relationship set up with Group and Contact objects. A group can have many contacts and contacts can belong to multiple groups. I'm trying to select all groups that a particular contact does NOT already belong to using the following predicate. (Note: the uid field is a string field that I used to uniquely identify contact entities) [NSPredicate predicateWithFormat:@"ALL contacts.uid != %@", contactUId] According to Apple's Predicate Programming Guide, the ALL aggregate operation is valid but I get the following exception