Archives and versions
Archives and versions
- Subject: Archives and versions
- From: John Scalo <email@hidden>
- Date: Mon, 27 Oct 2003 19:17:06 -0800
In an initWithCoder method for a class, I'm checking the class version and
if it's less than the current class version, I fill in some new instance
variables. This has worked fine in the past, but in this case I'm getting
the dreaded "NSUnarchiver: inconsistency between written and read data"
exception when initWithCoder returns. Why would this be? The class name is
the same, only a few instance variables have been added.
I've checked that the archive itself is in tact - it still unarchives fine
by the old version of the class. It's an archive of an object which contains
an array of other objects and it's the class of these other objects that is
changing. This is with serialized and not keyed archiving by the way (runs
on 10.1).
Thanks
John
_______________________________________________
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.