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

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

Changes by: 
                Nicola Pero <[EMAIL PROTECTED]>
'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/





_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to