On 2005-09-07 04:13:57 +0100 Lloyd Dupont <[EMAIL PROTECTED]> wrote:

I'm trying to port a MacOSX application to Windows.
So far it has worked mostly well.
However I'm trying to read one of our data file.

Which is an old format plist with some NSColor wich was stored as an NSData (on MacOSX) with
[NSArchiver archivedDataWithRootObject: myColor];

Now I tryed to read it on Windows/GNUstep with
myColor = (NSColor *) [NSUnarchiver unarchiveObjectWithData: aNSData];

and this fails and pops up a little GNUstep exception message box saying:
Critical
NSInternalInconsistencyException: Archive has wrong prefix

Now I wonder:
1. is it that GNUstep's NSUnarchiver deosn't support MacOSX NSArchiver format?

Yes ... it's an undocumented proprietory binary format.

We aim to have binary compatility for keyed archives though (reverse engineering that was more practicable).



_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to