• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to recognize mutability?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to recognize mutability?
      • From: Markus Spoettl <email@hidden>
    • Re: How to recognize mutability?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSTask arguments
  • Next by Date: Re: NSTask arguments
  • Previous by thread: Re: How to recognize mutability?
  • Next by thread: Re: How to recognize mutability?
  • Index(es):
    • Date
    • Thread