Re: Persistance
Re: Persistance
- Subject: Re: Persistance
- From: Marcel Weiher <email@hidden>
- Date: Tue, 9 Oct 2001 10:59:59 +0200
On Monday, October 8, 2001, at 08:09 PM, Raphael Sebbe wrote:
You have 3 solutions actually (it seems to me I already said that about
this ;-) :
1) implement NSCoding protocol for your objects, and use NSArchiver to
actually store them. The advantages of this method is that it is easy
to implement, has some nice features (versioning...). The drawback is
that the file format is a proprietary binary one (Apple), and you won't
be able to decode it from other platform/languages (unless you write
your custom NSCoder subclass, but this is a fairly complex task).
Writing an NSCoder isn't all *that* complicated, but you don't even have
to do it.
Objective-XML, for example, has an NSArchiver implementation that
generates XML files using NSCoding protocol. I am currently looking at
making the generated XML SOAP compatible (as much as feasible).
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Mad Scientist HOM, IDEAs, MetaAd and more