Re: Possible use of NSKeyedArchive
Re: Possible use of NSKeyedArchive
- Subject: Re: Possible use of NSKeyedArchive
- From: Chris Kane <email@hidden>
- Date: Sat, 26 Jul 2003 20:57:43 -0700
On Sunday, July 13, 2003, at 15:16, Michel RENON wrote:
I've heard of keyed archiving in Mac OS X 10.2. After reading stepwise
article on keyed archiving, I'm wondering if it might be useful for
me.
Using keyed archiving, it seems possible to decode one object from a
whole archive,
Yes, keyed unarchiving is suitable for that. It will only touch what's
needed. But...
but is it possible to encode one object in an existing archive,
without re-encoding the whole objects ?
No, NSKeyedArchiver can't do that. The file format actually supports
it (as long as the amount of changes is modest, otherwise it's just
better to rewrite), but no code exists to actually do that, and there's
no API.
Or should i save each place's data in different archives (ie different
files) ?
Yes. That way (for your small footprint) you really don't touch any
data you don't need to.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.