• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSKeyedArchiver selector not recognized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSKeyedArchiver selector not recognized (From: Scott Frankel <email@hidden>)
 >Re: NSKeyedArchiver selector not recognized (From: Mike Blaguszewski <email@hidden>)
 >Re: NSKeyedArchiver selector not recognized (From: Scott Frankel <email@hidden>)

  • Prev by Date: Re: Which format for image file resources in Cocoa application?
  • Next by Date: Re: Which format for image file resources in Cocoa application?
  • Previous by thread: Re: NSKeyedArchiver selector not recognized
  • Next by thread: Re: NSKeyedArchiver selector not recognized
  • Index(es):
    • Date
    • Thread