• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dictionaries within a dictionary - getAllValuesForKey:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Dictionaries within a dictionary - getAllValuesForKey: (From: "Jofell Gallardo" <email@hidden>)

  • Prev by Date: NSArrayController display newly inserted objects twice
  • Next by Date: Re: NSDocument and a 'persistent profiles palette'
  • Previous by thread: Re: Dictionaries within a dictionary - getAllValuesForKey:
  • Next by thread: Key number to Unicode string
  • Index(es):
    • Date
    • Thread