I have a NSDictionary object with deep structures in it like arrays containing further array which contain dictionaries…
I want to fetch an object down in the hierarchy. Is there any direct indexing way to fetch them using key names or something else?
Its a pain to keep on calling objectForKey methos multiple time to reach to deepest child level.
For a structure that includes Arrays, there is no built in way to do something like:
That being said, anything built in is just code that someone at Apple has written, and you can do the same.
Write a helper class that will do it for you based on a key concatenation scheme that you create, then just call it. It will save the code duplication.