Re: embedding a dictionary in a dictionary.
Re: embedding a dictionary in a dictionary.
- Subject: Re: embedding a dictionary in a dictionary.
- From: m <email@hidden>
- Date: Tue, 29 Apr 2003 07:14:48 +0100
On Monday, April 28, 2003, at 11:49 PM, Jason Alexander wrote:
I'm trying to implement a save function that saves a list of entities
which are (effectively) represented by a dictionary for each entry.
[etc]
The below code works for me, but in my case my dictionary does not
itself contain containers. Perhaps it will still work for you or at
least point you to the correct solution...
Cheers,
_murat
NSString* errorString;
NSData* dictData = [NSPropertyListSerialization dataFromPropertyList:
myDict
format:NSPropertyListXMLFormat_v1_0
errorDescription:&errorString];
[dictData writeToFile: @"/tmp/foo.dict" atomically: YES];
_______________________________________________
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.