Re: Core Data NSPredicate
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