Re: Implementing Object persistence
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