Search Core Data for all objects with an empty "to-many" relationship
Here's what you should do:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"lists.@count == 0"];[fetchRequest setPredicate:predicate];
;) wonder where I came up with that solution...
Figured it out. Here's what I did:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"lists.@count == 0"];[fetchRequest setPredicate:predicate];
Then when I ran the fetch request, it only brought up the patients with no list attached.