• 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
Re: Core Data NSPredicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data NSPredicate


  • Subject: Re: Core Data NSPredicate
  • From: Indragie Karunaratne <email@hidden>
  • Date: Mon, 14 Mar 2011 08:10:16 -0600

Thanks Andreas,

I see your point, but as far as I know, "IN" looks for an exact match (in this case, the attribute would have to match the term for the predicate to return true) where as I need it to check if the attribute CONTAINS the term (which is more appropriate for Spotlight-style search). That said, I am by no means an expert with predicates so correct me if I am wrong.


On 2011-03-14, at 3:45 AM, Andreas Grosam wrote:

> This is fine, however I'm not completely confident that your compound predicate (below) actually expresses your original intent.
> Consider, the prediacte
>  All tems IN attributes
> is equivalent to
>  (term_0 IN attributes) AND (term_1 IN attributes) ...  AND (term_n IN attributes)

_______________________________________________

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: Core Data NSPredicate
      • From: Andreas Grosam <email@hidden>
References: 
 >Core Data NSPredicate (From: Indragie Karunaratne <email@hidden>)
 >Re: Core Data NSPredicate (From: Andreas Grosam <email@hidden>)
 >Re: Core Data NSPredicate (From: Indragie Karunaratne <email@hidden>)
 >Re: Core Data NSPredicate (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Core Data NSPredicate
  • Next by Date: Re: Problem with NSPredicate in core data fetch request
  • Previous by thread: Re: Core Data NSPredicate
  • Next by thread: Re: Core Data NSPredicate
  • Index(es):
    • Date
    • Thread