Re: How to recognize mutability?
Re: How to recognize mutability?
- Subject: Re: How to recognize mutability?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 21 Feb 2013 11:05:37 +0700
On 21 Feb 2013, at 00:42, Markus Spoettl <email@hidden> wrote:
> On 2/20/13 9:10 AM, Gerriet M. Denkmann wrote:
>> P.S.
>> I want my own archiver for 2 reasons:
>> 1. NSKeyedArchiver can store only certain strings
>
> I find that very hard to believe.
I find that very easy to proof:
NSArray *a = @[ @"$nill", @"$null", @"$nall" ];
NSLog(@"%s NSKeyedArchiver archiving %@", __FUNCTION__, a);
NSData *e = [ NSKeyedArchiver archivedDataWithRootObject: a ];
NSArray *b = [ NSKeyedUnarchiver unarchiveObjectWithData: e ];
NSLog(@"%s NSKeyedUnarchiver got %@", __FUNCTION__, b);
/* NSKeyedArchiver archiving (
"$nill",
"$null",
"$nall"
)
NSKeyedUnarchiver got ()
**/
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden