Re: NSKeyedArchiver XML output?
Re: NSKeyedArchiver XML output?
- Subject: Re: NSKeyedArchiver XML output?
- From: "Stephen J. Butler" <email@hidden>
- Date: Mon, 8 Dec 2008 04:10:09 -0600
On Mon, Dec 8, 2008 at 3:44 AM, Devraj Mukherjee <email@hidden> wrote:
> I am trying to get an sample project that demos NSKeyedArchiver to
> write in the XML format,
>
> All I can see is a call to a message
> [NSKeyedArchiver archiveRootObject: rootObject toFile: path];
>
> how do I instruct NSKeyedArchiver to write in its XML format?
alloc and use initForWritingWithMutableData: (take a look at the doc
for this method for instructions). Before encoding anything you can
call setOutputFormat: and get XML put into your mutable data instance.
_______________________________________________
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