Re: How to recognize mutability?
Re: How to recognize mutability?
- Subject: Re: How to recognize mutability?
- From: Markus Spoettl <email@hidden>
- Date: Thu, 21 Feb 2013 09:08:51 +0100
On 2/21/13 5:05 AM, Gerriet M. Denkmann 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 ()
**/
OK, granted that's really bad, but it's hardly what "can store only certain
strings" implies. It sounded as if there were arbitrary character sequences that
could not be stored when in fact in can't store one special character sequence.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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