• 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: getting booleans out of plists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting booleans out of plists


  • Subject: Re: getting booleans out of plists
  • From: Brian Webster <email@hidden>
  • Date: Wed, 19 Dec 2001 12:56:59 -0600

On Wednesday, December 19, 2001, at 11:03 AM, cocoa-dev-
email@hidden wrote:

ok, so I made a nice plist for my app with the PropertyListEditor and
used Booleans but when I do a dictionaryWithFile on the file I made,
my boolean values are type NSCFBoolean. What can i do with that?
how can I turn that into a BOOL?

You can treat those objects as NSNumbers, so just send a boolValue message to get a YES or NO.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster


  • Prev by Date: Apple Help Book under Cocoa
  • Next by Date: Re: Apple Help Book under Cocoa
  • Previous by thread: getting booleans out of plists
  • Next by thread: Re: Syntax Coloring...
  • Index(es):
    • Date
    • Thread