• 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
Predicate for an empty set?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Predicate for an empty set?
      • From: mmalc crawford <email@hidden>
  • Prev by Date: fontItalic Binding not working?
  • Next by Date: Re: CoverFlow on 10.4
  • Previous by thread: Re: fontItalic Binding not working?
  • Next by thread: Re: Predicate for an empty set?
  • Index(es):
    • Date
    • Thread