Re: BOOL madness
Re: BOOL madness
- Subject: Re: BOOL madness
- From: "Michael Ash" <email@hidden>
- Date: Tue, 11 Nov 2008 21:12:39 -0500
On Tue, Nov 11, 2008 at 8:36 PM, Andre Masse <email@hidden> wrote:
> I was looking everywhere for BOOL methods conversion and couldn't find any.
> Now I know why: BOOL is not an object type. Not sure how I could have found
> [myObject boolValue] though... Now that I know about it, I searched the
> documentation reference and found that is a method implemented by NSString
> and NSNumber. I suppose there's some kind of conversion from BOOL to
> NSString or NSNumber being done somewhere for putting this value in the
> change dictionary.
Key-Value Observing is built on top of Key-Value Coding, and KVC is
documented to box non-object scalars using NSNumber and NSValue:
http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/DataTypes.html
Mike
_______________________________________________
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