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/



_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to