Re: BOOL attribute types.
Re: BOOL attribute types.
- Subject: Re: BOOL attribute types.
- From: Alex Zavatone <email@hidden>
- Date: Wed, 18 Feb 2015 13:58:32 -0500
Well, stupid me. You can't have a BOOL with a nil value. Thanks Scott.
Sent from my iPad. Please pardon typos.
On Feb 18, 2015, at 1:29 PM, Scott Ribe <email@hidden> wrote:
> On Feb 18, 2015, at 11:02 AM, Alex Zavatone <email@hidden> wrote:
>>
>> In creating an autoDescription method for objects, it's important to know if our BOOLs are NO or nil.
>
> ???
>
> It's a char, not a pointer, simply an integer type. Nil is 0, NO is 0, assign 0 to an integer, you have 0.
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
_______________________________________________
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