Re: allKeys and allValues
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