I have an NSManagedObject SchoolClass that has a To Many relationship to Students. I have it working for when I want to find SchoolClasses containing a specified student by using,
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"(ANY students == %@)", student];
How would I set up an NSPredicate to return an NSArray of SchoolClasses that do NOT contain a specified student? I thought something like below would work but it does not.
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"(NONE students IN %@)", student];