Reading NSDictionary from Plist
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.