• 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: PList Data Typing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >PList Data Typing (From: Kevin Bracey <email@hidden>)
 >Re: PList Data Typing (From: Jens Alfke <email@hidden>)
 >Re: PList Data Typing (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: WTF is happening?
  • Next by Date: Re: Issues with applications running on background (Alarm Application)
  • Previous by thread: Re: PList Data Typing
  • Next by thread: Re: PList Data Typing
  • Index(es):
    • Date
    • Thread