NSArchiving failing on a NSString
NSArchiving failing on a NSString
- Subject: NSArchiving failing on a NSString
- From: Jeremy Faller <email@hidden>
- Date: Tue, 8 Jul 2003 00:52:40 -0400
All:
Hello again. I have a problem, and I can't seem to diagnose it...
I have a custom class, that I am saving with an NSArchiver. I have
implemented the NSCoding protocol, and can save the item (no problem),
but restoring it causes it to bomb out. It always bombs out on the
first instance of ANY NSString I have in the class. I have swapped in
and out all the different NSStrings in the class, and they all have the
same problem.
The exact error message I am getting is:
2003-07-08 00:43:51.919 MJDirectOrders[485] An uncaught exception was
raised
2003-07-08 00:43:51.935 MJDirectOrders[485] NSString cannot decode
class version 2147483647
2003-07-08 00:43:51.936 MJDirectOrders[485] *** Uncaught exception:
<NSGenericException> NSString cannot decode class version 2147483647
MJDirectOrders has exited due to signal 5 (SIGTRAP).
If I exclude all the NSStrings from the archiving, the class
saves/restores just fine... Additionally, I notice that when I
archive, the encodeWithCoder: method is getting called twice; and, I
can't figure out why. (Could it have something to do with this class
being in an NSMutableArray, and this array in an NSMutableDictionary
which is what I am saving to the file?!?!??)
I am running OS 10.2.6.
Any help would be appreciated.
As usual, thanks in advance.
Jeremy Faller
email@hidden
_______________________________________________
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.