• 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: NSMutableDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary


  • Subject: Re: NSMutableDictionary
  • From: Paul Hoadley <email@hidden>
  • Date: Sun, 07 Feb 2016 09:49:40 +1030

Hi Bart,

On 7 Feb 2016, at 8:23 am, jazzsalsa <email@hidden> wrote:

> For the first level I get all the keys:
>
> log.info("All keys: " + dict.allKeys().arrayList());
>
> The next child I get by:
>
> NSArray children = (NSArray)dict.objectForKey("children");
>
> But how to get to the next level? Probably I am doing this all wrong
> since it should be easy to flatten all entries in a nested dictionary,
> but I am new to this. There should be a better way of doing this than
> writing a recursive tree crawler. Does this make sense?

There may not be a better way, and it probably depends on how much you know about the data structure being represented by the dictionary. Can you tell us more about what you’re trying to do?


--
Paul Hoadley
http://logicsquad.net/




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >NSMutableDictionary (From: jazzsalsa <email@hidden>)

  • Prev by Date: Re: NSMutableDictionary
  • Next by Date: Re: NSMutableDictionary
  • Previous by thread: Re: NSMutableDictionary
  • Next by thread: HTTP 1.1's chunked encoding
  • Index(es):
    • Date
    • Thread