Re: PList Data Typing
Re: PList Data Typing
- Subject: Re: PList Data Typing
- From: Jens Alfke <email@hidden>
- Date: Tue, 16 Dec 2014 12:31:05 -0800
> On Dec 16, 2014, at 11:46 AM, Uli Kusterer <email@hidden> wrote:
>
> Make sure you test that thoroughly. I remember that older Mac OS X releases didn't have a separate boolean class, so depending on who writes that file on what OS, you may just get an NSNumber (even if you call NSNumber numberWithBool:). I'm not sure you can rely on actually getting a boolean object even on 10.10.
It seems reliable to me. If it weren't reliable, NSJSONSerialization wouldn't work correctly — it would end up encoding a true/false value as 0 or 1 instead.
—Jens
_______________________________________________
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