Re: CoreData & Bindings: How to make a predicate search a to-many rel ationship
Re: CoreData & Bindings: How to make a predicate search a to-many rel ationship
- Subject: Re: CoreData & Bindings: How to make a predicate search a to-many rel ationship
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 1 Aug 2005 12:27:32 -0700
On Aug 1, 2005, at 8:38 AM, Oliver Donald wrote:
chapters.name contains[c] $value
...and although no obvious errors are thrown up, no search queries
return
any hits. I guess this is because it is a to-many relationship,
unlike the
one before which is to-one. How would I go about searching through
all the
objects in a to-many relationship like this?
ANY chapters.name OPERATOR[c] $value
(See <http://developer.apple.com/documentation/Cocoa/Conceptual/
Predicates/Articles/pBasics.html>.)
For some reason I don't think CONTAINS works, use BEGINSWITH, LIKE,
MATCHES...
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden