[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUnarchiver question

From: Richard Frith-Macdonald
Subject: Re: NSUnarchiver question
Date: Wed, 07 Sep 2005 05:36:32 +0100

On 2005-09-07 04:13:57 +0100 Lloyd Dupont <address@hidden> 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:
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).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]