Re: How do I programmatically disable/enable an NSButton
Re: How do I programmatically disable/enable an NSButton
- Subject: Re: How do I programmatically disable/enable an NSButton
- From: Philip Bridson <email@hidden>
- Date: Sun, 20 Jan 2008 10:35:26 -0800
Oh, I feel like such a Dunce now, should have thought about inheritance. DOH!
Thanks guys.
On Sunday, January 20, 2008, at 06:31PM, "Clark Cox" <email@hidden> wrote:
>On Jan 20, 2008 10:28 AM, Philip Bridson <email@hidden> wrote:
>> Hi there,
>>
>> I know that you can set whether a button is Disabled/Enabled in IB but how do I change it programmatically so that I can do it in runtime? I have searched the API and Documentation but I can't seem to find a method for doing it.
>
>[myButton setEnabled: YES];
>[myButton setEnabled: NO];
>
>(Remember that NSButton is a subclass of NSControl)
>
>
>--
>Clark S. Cox III
>email@hidden
>
>
_______________________________________________
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