Re: Dictionaries within a dictionary - getAllValuesForKey:
Re: Dictionaries within a dictionary - getAllValuesForKey:
- Subject: Re: Dictionaries within a dictionary - getAllValuesForKey:
- From: Charles Steinman <email@hidden>
- Date: Thu, 7 Jun 2007 11:09:14 -0700 (PDT)
If you have an array of dictionaries, you can use valueForKey. For instance, say myArray is an array that looks like ({foo1 = bar1; foo2 = bar2;}, {foo1 = bar3; foo2 = bar4;}). If you call [myArray valueForKey:@"foo1"], in return you will get an array that looks like (bar1, bar3). To do it with with a dictionary of dictionaries, just use allValues to get an array first.
Cheers,
Chuck
Jofell Gallardo <email@hidden> wrote: Is there such a method? I just want to get all values that I could get for a
dictionary of dictionaries (or array of dictionaries).
e.g. I have a collection of dictionaries with key "xackupid". I want to
collect on a single call all the possible values for xackupid.
How can I do this?
_______________________________________________
---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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