• 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
nested NSDictionary's and objectForKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nested NSDictionary's and objectForKey


  • Subject: nested NSDictionary's and objectForKey
  • From: Russell Gray <email@hidden>
  • Date: Sat, 19 Sep 2009 17:34:31 +1000

I am wanting to create an NSArray from strings stored (at various levels) in a plist of nested NSDictionary's.

I am trying the following code, but it only reads the key from the root dictionary: (FolderPath, and PlistFullName, have been previously defined)

Code:
NSString *plistFolder = [FolderPath stringByExpandingTildeInPath];
NSString *PlistPath = [plistFolder stringByAppendingPathComponent:PlistFullName];

NSDictionary *myDictionary = [NSDictionary dictionaryWithContentsOfFile: PlistPath];
NSArray *myArray = [myDictionary objectForKey:@"myKey"];
where do I begin?


Russell
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: nested NSDictionary's and objectForKey
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Problem with fontDescriptorWithFontAttributes:
  • Next by Date: Re: nested NSDictionary's and objectForKey
  • Previous by thread: Re: How to show the "Info Panel" for the files in tableview?
  • Next by thread: Re: nested NSDictionary's and objectForKey
  • Index(es):
    • Date
    • Thread