Re: Search Array for Variable in Object
Re: Search Array for Variable in Object
- Subject: Re: Search Array for Variable in Object
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 5 Dec 2005 14:59:22 -0800
On Dec 5, 2005, at 1:19 PM, Steve Gran wrote:
Unfortunately it looks as if the predicate needs to search for the
object only, let's say in this case it's "myObject3" or some
portion of the name of myObject (again in this case myObject3), and
will then return a new Array that contains myObject3. But it
doesn't appear to have the ability to look inside the object and
search instance variables of an object.
I'm not sure how you reach that conclusion? You can use key-paths to
specify a property...
The example given in "Using Predicates with Relationships" shows
"department.name like %@"; to filter an array you could use something
like:
"myObject3 like [cd] 'WhatIWant'"
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