discuss-gnustep
[Top][All Lists]
Advanced

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

NSUnarchiver question


From: Lloyd Dupont
Subject: NSUnarchiver question
Date: Wed, 7 Sep 2005 13:13:57 +1000

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?
2. is it my dictionary/NSData reading which was wrong?
Because I read the XML plist with .NET's XML API and pass the resulting NSDictionary to the failing function. I converted the data string in XML to NSData through something akin to uudecode.

Any comments?




reply via email to

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