NSDictionary allKeys and allValues clarification?
NSDictionary allKeys and allValues clarification?
- Subject: NSDictionary allKeys and allValues clarification?
- From: Matt Gough <email@hidden>
- Date: Thu, 5 Jan 2006 13:28:13 +0000
OK, so the documentation for allKeys and allValues both state:
'The order of the elements in the array isn’t defined'.
Does that really mean that if i do:
NSArray* keys = [dict allKeys];
NSArray* values = [dict allValues];
that there is no guarantee that the items in the two arrays are in
sync with each other.
Should I really be doing:
NSArray* keys = [dict allKeys];
NSArray* values = [dict objectsForKeys:keys notFoundMarker:[NSNull
null]];
Thanks
Matt Gough
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden