Re: CFBoolean
Re: CFBoolean
- Subject: Re: CFBoolean
- From: Chris Idou <email@hidden>
- Date: Sun, 24 Aug 2008 19:34:28 -0700 (PDT)
--- On Sun, 8/24/08, Phil <email@hidden> wrote:
<http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Articles/XMLPListsConcept.html>
>
> I'm curious as to why you need a boolean, rather than
> just what
> -setBool:forKey: gives you?
Because I have an array containing dictionaries containing bools, not just plain bools.
Using kCFBooleanTrue works, thanks to the person who gave that suggestion.
For the person who suggested [NSNumber numberWithBool:YES], I realise this will generally "work" for most things, but it won't actually show up as bool in the property list editor. It will be a 1 or 0.
_______________________________________________
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