• 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
Reading NSDictionary from Plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reading NSDictionary from Plist


  • Subject: Reading NSDictionary from Plist
  • From: Benjamin Goldenberg <email@hidden>
  • Date: Thu, 8 Apr 2004 22:27:37 -0600

For my program, I am storing lots of information in Plist files, because they are easy to read and write to with NSDictionary. The following snippet of code works perfectly, displaying all the appropriate keys and values in an OCUnit TestCase, but always displays null when used anywhere else, such as in an IBAction that is called from a menu item.

NSDictionary *dictionary = [NSDictionary dictionaryWithContentsOfFile:@"DNAAlphabet.plist"];
NSLog(@"dictionary = %@", dictionary);

I realize I am not providing a great deal of information, but I can't seem to narrow it down. Any suggested direction to figure this out would be greatly appreciated.

Thanks,
Benjamin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Reading NSDictionary from Plist
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: OT - Translators
  • Next by Date: Re: GetIconRef for Cocoa
  • Previous by thread: Re: GetIconRef for Cocoa
  • Next by thread: Re: Reading NSDictionary from Plist
  • Index(es):
    • Date
    • Thread