Predicate for an empty set?
Predicate for an empty set?
- Subject: Predicate for an empty set?
- From: Conor <email@hidden>
- Date: Sat, 18 Aug 2007 14:43:55 +0200
What would be a predicate to return all departments with no employees in a
Core Data fetch?
I am having trouble given that employee is a to-many relationship. I have
the opposite working all department with at least one employee:
[NSPredicate predicateWithFormat:@"ANY employee.name != nil"];
But I can't do "employee == nil" on a to-many relationship; the NOT of the
opposite also fails "NOT ANY employee.name != nil".
Thank you,
Conor
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden