• 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: Migration Path for NSArchiver data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Migration Path for NSArchiver data?


  • Subject: Re: Migration Path for NSArchiver data?
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 19 Apr 2007 10:47:50 +0200

Am 19.04.2007 um 06:42 schrieb Colin Cornaby:
Is there any method for reading NSArchiver data after NSArchiver drops off the face of the Earth? It seems odd to me there is no plan to deal with already NSArchiver serialized data out there.

It isn't likely that NSArchiver will drop off the face of the earth. My impression is that it's deprecated for use in writing new code, because keyed archivers automatically do most of the versioning for you if you know how to handle NIL keys. Apple might also not port it to new platforms (if they ever do another major platform move). If you look at NSUnarchiver, they actually still have a call in there that reads some of the old NX-objects. If they still support reading pre-Cocoa objects, chances are they'll throw that out *before* they throw out NSArchiver.


That said, nobody knows Apple's plans. So, all of Cocoa or Carbon could disappear off the face of the Earth in a future system version and you wouldn't be able to use it anymore. If you want to be safe from that, invent your own format and use that. Otherwise, just hope that Apple stays this nice and generally gives us years' worth of warning before they drop an API. Since you're writing your data, you would probably also have not many problems just looking at some files you generated and "reverse-engineering" the file format for your particular case, and write your own NSUnarchiver.

Think of the GNUstep folks if you do that, they might have use for that code, too. Or someone there might already have written it.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Migration Path for NSArchiver data?
      • From: Colin Cornaby <email@hidden>
References: 
 >Migration Path for NSArchiver data? (From: Colin Cornaby <email@hidden>)

  • Prev by Date: Re: Global variable for whole application.
  • Next by Date: Re: Global variable for whole application.
  • Previous by thread: Migration Path for NSArchiver data?
  • Next by thread: Re: Migration Path for NSArchiver data?
  • Index(es):
    • Date
    • Thread