• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
count of a to-many relationship in an NSPredicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: count of a to-many relationship in an NSPredicate
      • From: Charles Steinman <email@hidden>
  • Prev by Date: Re: Integrating a C command line tool into Objective-C application
  • Next by Date: keyboard events
  • Previous by thread: Re: Getting button binding to invoke an action
  • Next by thread: Re: count of a to-many relationship in an NSPredicate
  • Index(es):
    • Date
    • Thread