Re: -[NSPredicate evaluateWithObject:] and NSArray
Re: -[NSPredicate evaluateWithObject:] and NSArray
- Subject: Re: -[NSPredicate evaluateWithObject:] and NSArray
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 14 Jun 2007 13:37:43 -0600
On Jun 14, 2007, at 8:52 AM, Keary Suska wrote:
Are you passing your NSArray as the object parameter to
-evaluateWithObject:? If so, considering that the method returns a
*single*
boolean value, how could it possibly work with a collection object?
No, I'm passing the KVC-compliant object into the predicate. The
object's -valueForKey: method returns an NSArray as a value for one
of its keys.
What would lead you to believe that NSMetadataQuery and NSPredicate
would
behave similarly, or even analogously? Note the keyword differences
"query"
vs "predicate". Therein lies your answer.
I thought a predicate was a predicate. How do I get -
evaluateWithObject: to work with keys that return an NSArray as their
value?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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