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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to