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

Re: NSPredicate with non-string keys


  • Subject: Re: NSPredicate with non-string keys
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 23 Mar 2009 17:48:45 -0400

On Mon, Mar 23, 2009 at 5:18 PM, Ben Einstein <email@hidden> wrote:
> So is there any way to filter with numberic keys? I guess I could convert
> all they keys to strings? Urgh....

First, arrays don't have keys.  I'm assuming you mean you need to
filter the items based on values for keypaths off those objects.

And no, numbers are not valid keys.  Keys must begin with a lowercase
letter: http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/BasicPrinciples.html#//apple_ref/doc/uid/20002170-183455

--Kyle Sluder
_______________________________________________

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: Ben Einstein <email@hidden>
References: 
 >NSPredicate with non-string keys (From: Ben Einstein <email@hidden>)
 >Re: NSPredicate with non-string keys (From: Kyle Sluder <email@hidden>)
 >Re: NSPredicate with non-string keys (From: Ben Einstein <email@hidden>)

  • Prev by Date: Re: Stop NSScrollView from catching scroll events.
  • Next by Date: Re: NSPredicate with non-string keys
  • Previous by thread: Re: NSPredicate with non-string keys
  • Next by thread: Re: NSPredicate with non-string keys
  • Index(es):
    • Date
    • Thread