• 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: -[NSPredicate evaluateWithObject:] and NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: -[NSPredicate evaluateWithObject:] and NSArray
      • From: Keary Suska <email@hidden>
References: 
 >Re: -[NSPredicate evaluateWithObject:] and NSArray (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: "Recursive" #imports
  • Next by Date: Re: "Recursive" #imports
  • Previous by thread: Re: -[NSPredicate evaluateWithObject:] and NSArray
  • Next by thread: Re: -[NSPredicate evaluateWithObject:] and NSArray
  • Index(es):
    • Date
    • Thread