• 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
Clarification of NSPredicate constraints for Core Data SQL store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarification of NSPredicate constraints for Core Data SQL store


  • Subject: Clarification of NSPredicate constraints for Core Data SQL store
  • From: Barry Wark <email@hidden>
  • Date: Tue, 30 Jun 2009 09:44:35 -0700

In the "Constraints and Limitations" section of the Predicate
Programming Guide
(http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pBasics.html#//apple_ref/doc/uid/TP40001792-249799),
the second bullet states than only one operator (ALL, IN, ANY) and
only one instance of that operator per query. I can't find any
reference to such a limitation in the SQLite documentation, so I
assume that this is an NSPredicate or Core Data limitation. From the
doc, it seems that a predicate with a format @"self.first_name IN
{'Joe', 'Bob', 'Bertha'} OR self.last_name IN {'Smith', 'Jones'}" is
illegal. It seems that this is quite restrictive. In true lazy web
style, can any one confirm whether this restriction is really per
query or whether it is per clause in a compound predicate?

Thanks,
Barry
_______________________________________________

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: Clarification of NSPredicate constraints for Core Data SQL store
      • From: "Melissa J. Turner" <email@hidden>
  • Prev by Date: Re: NSObjectController, content outlet and content object question
  • Next by Date: Re: NSBitMapRepresentation --> JPEG compression?
  • Previous by thread: Re: Raw Infrared Data
  • Next by thread: Re: Clarification of NSPredicate constraints for Core Data SQL store
  • Index(es):
    • Date
    • Thread