count of a to-many relationship in an NSPredicate
count of a to-many relationship in an NSPredicate
- Subject: count of a to-many relationship in an NSPredicate
- From: Gonzalo Castro <email@hidden>
- Date: Sat, 8 Sep 2007 23:47:28 -0400
Hello,
How can I use the count of a to-many relationship in an NSPredicate?
Eg, in a Department <--:>> Employee inverse relationship I'd like to
fetch all departments that have no employees. Is the count of to-many
relationships something that cannot be fetched? Searching the
archives, I've seen this question asked here before but with no
followups.
I can find a reference to a 'count' function in the Predicate
Programming Guide but no example on how to use functions in an
NSPredicate. I also see a array[SIZE] in the Aggregate Operations
section but, again, no example of syntax or context.
Thanks,
Gonzalo
_______________________________________________
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