> On Dec 16, 2014, at 11:46 AM, Uli Kusterer <witness.of.teacht...@gmx.net> 
> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to