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: Nicola Pero
Subject: [bugs #8385] NSKeyedUnarchiver doesn't unarchive on Windows
Date: Thu, 29 Apr 2004 11:30:32 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

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

/**************************************************************************/
[bugs #8385] Latest Modifications:

Changes by: 
                Nicola Pero <address@hidden>
'Date: 
                Thu 04/29/04 at 15:30 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
            Category | Makefiles                 | Base/Foundation







/**************************************************************************/
[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 10:25

Category:  Base/Foundation
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]