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

NSMutableDictionary


  • Subject: NSMutableDictionary
  • From: jazzsalsa <email@hidden>
  • Date: Sat, 06 Feb 2016 22:53:05 +0100

Hi list,

I have a question about a nested NSMutableDictionary. Some of the
objects in the dictionary consist of another NSMutableDictionary. Usage
here is a nested JSON object which is converted to  a dictionary. 

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?

Many thanks, Bart
 _______________________________________________
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


  • Follow-Ups:
    • Re: NSMutableDictionary
      • From: Paul Hoadley <email@hidden>
    • Re: NSMutableDictionary
      • From: Hugi Thordarson <email@hidden>
  • Prev by Date: Re: read-only binding
  • Next by Date: Re: NSMutableDictionary
  • Previous by thread: Re: read-only binding
  • Next by thread: Re: NSMutableDictionary
  • Index(es):
    • Date
    • Thread