Re: NSKeyedArchiver selector not recognized
Re: NSKeyedArchiver selector not recognized
- Subject: Re: NSKeyedArchiver selector not recognized
- From: Bill Bumgarner <email@hidden>
- Date: Fri, 5 May 2006 10:31:41 -0700
On May 5, 2006, at 10:07 AM, Scott Frankel wrote:
A typo. Ugh. Thanks much for the additional info! Very
valuable! My app now archives its data.
I was hoping, though, that the app would write a human-readable
file. I've tried setting the XCode target's -> Properties ->
Document Types -> Extensions to both xml & plist. Each yields a
binary file. Am I not finding the right widget or value to set?
Or is the archive method I'm using not capable of writing plain ASCII?
If you want to write a format you control, you will need to take
responsibility for archiving your data. You could roll your own or
you could subclass the archiver classes.
If you just want a human readable format in the archive, see the
NSKeyedArchiver documentation (generally, documentation is a very
good thing to go read -- I would encourage everyone to do so every day):
In particular, an NSKeyedArchiver instance implements the -
setOutputFormat:. Since it is an instance method, you'll need to
instantiate NSKeyedArchiver and pass an NSMutableData upon archival.
b.bum
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden