• 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: allKeys and allValues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: allKeys and allValues


  • Subject: Re: allKeys and allValues
  • From: Greg Parker <email@hidden>
  • Date: Mon, 4 Oct 2010 14:40:31 -0700

On Oct 4, 2010, at 2:31 PM, Ken Thomases wrote:
> On Oct 4, 2010, at 4:21 PM, gMail.com wrote:
>> On the docs I read that for both the NSDictionary's allKeys and allValues,
>> the order of the elements in the array is not defined. Ok.
>> But, are the two arrays aligned each other?
>
> If the docs don't contain that promise, then you can't rely on it.

The documentation for CFDictionaryGetKeysAndValues() does promise to return parallel arrays, so you might be able to use that instead.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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: allKeys and allValues
      • From: "gMail.com" <email@hidden>
    • Re: allKeys and allValues
      • From: Dave DeLong <email@hidden>
References: 
 >allKeys and allValues (From: "gMail.com" <email@hidden>)
 >Re: allKeys and allValues (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: allKeys and allValues
  • Next by Date: Re: allKeys and allValues
  • Previous by thread: Re: allKeys and allValues
  • Next by thread: Re: allKeys and allValues
  • Index(es):
    • Date
    • Thread