On Mon, Dec 8, 2008 at 3:44 AM, Devraj Mukherjee <[EMAIL PROTECTED]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
