• 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: Implementing Object persistence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing Object persistence


  • Subject: Re: Implementing Object persistence
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 9 Jan 2005 19:40:30 +0100

At 10:22 Uhr -0800 09.01.2005, Will Mason wrote:
 > > I'm interested in finding any how-to info on implementing Object
 > > Persistence on Mac OS X
 > (...)
 > I'd say using NSKeyedArchiver. I'm not sure it will handle cyclical
graphs, but you definitely need to check it out.

NSKeyedArchiver is fine, but if you're concerned about performance or you want to create very large archives with thousands of objects, then NSArchiver is a much better option. NSKeyedArchiver tends to spend a lot of time twiddling its thumbs.

OTOH, if you need an extensible and future-safe archiving format, NSKeyedArchiver is the better option. NSArchiver doesn't really work too well with changing requirements. E.g. if you need to add new fields to your objects, you have to account for that manually with NSArchiver, while NSKeyedArchiver will just ignore keys you don't request, and give you NIL on keys that aren't there.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
  • Follow-Ups:
    • Re: Implementing Object persistence
      • From: Will Mason <email@hidden>
References: 
 >Re: Implementing Object persistence (From: Will Mason <email@hidden>)

  • Prev by Date: Re: Ghost value in NSUserDefaults
  • Next by Date: Re: Framework & OpenSSL
  • Previous by thread: Re: Implementing Object persistence
  • Next by thread: Re: Implementing Object persistence
  • Index(es):
    • Date
    • Thread