Re: getting booleans out of plists
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