bug-gnustep
[Top][All Lists]
Advanced

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

[bugs #8385] NSKeyedUnarchiver doesn't unarchive on Windows


From: anonymous
Subject: [bugs #8385] NSKeyedUnarchiver doesn't unarchive on Windows
Date: Wed, 31 Mar 2004 05:25:06 -0500
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/124 (KHTML, like Gecko) Safari/125.1

This mail is an automated notification from the bugs tracker
 of the project: GNUstep.




/**************************************************************************/
[bugs #8385] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8385>
Project: GNUstep
Submitted by: 0
On: Wed 03/31/04 at 05:25

Category:  Makefiles
Severity:  5 - Average
Item Group:  Change Request
Resolution:  None
Assigned to:  None
Status:  Open


Summary:  NSKeyedUnarchiver doesn't unarchive on Windows

Original Submission:  NSKeyedUnarchiver doesn't seem to unarchive on Windows.

The following code

        id test=[NSMutableArray arrayWithObjects:@"Test", @"Keks", @"Hurz", 
nil];
        id e = [test objectEnumerator];
        id c;
        printf("beforen");
        while(c=[e nextObject])
        {
                printf("%sn", [c cString]);
        }

        [NSKeyedArchiver archiveRootObject:test toFile:@"test"];
        test = [NSKeyedUnarchiver unarchiveObjectWithFile:@"test"];

         e = [test objectEnumerator];
        printf("aftern");
        while(c=[e nextObject])
        {
                printf("%sn", [c cString]);
        }

works perfectly in OS X (with Apple's foundation library). On Windows, it 
doesn't.
The unarchived array seems completely empty (but the program doesn't crash).

Also, NSKeyedArchiver saves the "version" property as a string; it should be an 
integer. When I manually change that, I can unarchive the archived object from 
Windows on OS X.











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8385>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

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