bug-gnustep
[Top][All Lists]
Advanced

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

[bug #16456] Unarchive NSArray containing several NSNull


From: pavel moravec
Subject: [bug #16456] Unarchive NSArray containing several NSNull
Date: Fri, 28 Apr 2006 06:42:31 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.7.12) Gecko/20050920 Firefox/1.0.7

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16456>

                 Summary: Unarchive NSArray containing several NSNull
                 Project: GNUstep
            Submitted by: pavamora
            Submitted on: Friday 04/28/06 at 06:42
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

I'm using Mandrake 10.1 (i586) with gcc-3.4.1 and GNUstep
gnustep-base-1.12.0

The following sequence does work:
id x=[NSMutableArray array];
[x addObject:@"a"];
[x addObject:[NSNull null]];
//[x addObject:[NSNull null]];
[x addObject:@"b"];
NSLog(@"count %d content %@",[x count], x);
id y=[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver 
archivedDataWithRootObject: x]];
NSLog(@"count %d content %@",[y count],y);

But the following sequence does not work:
id x=[NSMutableArray array];
[x addObject:@"a"];
[x addObject:[NSNull null]];
[x addObject:[NSNull null]];
[x addObject:@"b"];
NSLog(@"count %d content %@",[x count], x);
id y=[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver 
archivedDataWithRootObject: x]];
NSLog(@"count %d content %@",[y count],y);









    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16456>

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





reply via email to

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