I have been using NSKeyedArchiver's +archivedDataWithRootObject:
method to create archives. Now, I want to create and read the same
archives but using a instances of NSKeyedArchiver and
NSKeyedUnarchiver instead of the class methods (so I can do things
like set a delegate, for instance).
On Mar 9, 2009, at 3:59 PM, Paul Kim wrote:
I have been using NSKeyedArchiver's +archivedDataWithRootObject:
method to create archives. Now, I want to create and read the same
archives but using a instances of NSKeyedArchiver and
NSKeyedUnarchiver instead of the class methods (so I can do
Thanks for the response but your code changes the archive format. I
have existing files encoded already with the root key and
decodeObject: without a key won't do it. As mentioned before, yes, I
can specify the root key but it appears to not be official API.
Paul Kim
Hi Paul,
I have existing files encoded already with the root key and
decodeObject: without a key won't do it. As mentioned before, yes,
I can specify the root key but it appears to not be official API.
I hit the same problem a while back and never did find an official
way to solve this.
On 10/03/2009, at 6:59 AM, Paul Kim wrote:
I have to encode the object with the undocumented root key.
And yes, for practical reasons, using the root key will work
because of backwards compatibility but it would be nice if there
were an official way to do this (or some semi-official word