Re: allKeys and allValues
Re: allKeys and allValues
- Subject: Re: allKeys and allValues
- From: Dave DeLong <email@hidden>
- Date: Mon, 04 Oct 2010 15:43:23 -0600
Or do something like:
NSArray * allKeys = [dictionary allKeys];
NSArray * allValues = [dictionary objectsForKeys:allKeys notFoundMarker:[NSNull null]];
This also guarantees a 1-to-1 correspondance.
Dave
On Oct 4, 2010, at 3:40 PM, Greg Parker wrote:
> The documentation for CFDictionaryGetKeysAndValues() does promise to return parallel arrays, so you might be able to use that instead.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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