[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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:
NSInternalInconsistencyException: Archive has wrong prefix
Now I wonder:
1. is it that GNUstep's NSUnarchiver deosn't support MacOSX NSArchiver
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
- NSUnarchiver question,
Lloyd Dupont <=