Re: getting a plist into a dictionary?
Re: getting a plist into a dictionary?
- Subject: Re: getting a plist into a dictionary?
- From: Steve Christensen <email@hidden>
- Date: Thu, 18 Dec 2003 10:36:42 -0800
On Dec 17, 2003, at 10:26 PM, Scott Anguish wrote:
On Dec 17, 2003, at 11:41 PM, Charles Srstka wrote:
NSDictionary *dict = [NSDictionary
dictionaryWithContentsOfFile:filePath];
that won't work because he's dealing with the data returned by an
NSFileWrapper
Or, look into the NSPropertyListSerialization class.
specifically
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSPropertyListSerialztion.html#//apple_ref/doc/
uid/20000942/BAJIIGDC
+ propertyListFromData:mutabilityOption:format:errorDescription:
Thanks, that did it. It'd sure be nice if there were examples of
working document packages out there. It seems like all the example code
(Apple's and in the Cocoa books) focuses on the simple case of a single
file. Good brain work, anyways... :-)
steve
_______________________________________________
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.