• 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
NSPredicate with non-string keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPredicate with non-string keys


  • Subject: NSPredicate with non-string keys
  • From: Ben Einstein <email@hidden>
  • Date: Mon, 23 Mar 2009 17:03:47 -0400

Hi,

I was wondering if anyone knows how to use NSPredicate on values with keys that are NSNumbers (or any non-NSString, for that matter). I've poured over the documentation and tried many things, from converting to a string to %K, %d, etc argument substitutions and nothing seems to work.

If there's no way to do this, I've also tried ALLKEYS, but I can't get that to work either. Is this possible? If it matters, I'm just creating the predicate with predicateWithFormat: and sorting an array.

Thanks in advance,
Ben Einstein
_______________________________________________

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


  • Follow-Ups:
    • Re: NSPredicate with non-string keys
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Core Data: is fetching safe during validateForInsert:/validateForUpdate?
  • Next by Date: Re: NSPredicate with non-string keys
  • Previous by thread: Core Data: is fetching safe during validateForInsert:/validateForUpdate?
  • Next by thread: Re: NSPredicate with non-string keys
  • Index(es):
    • Date
    • Thread