Re: Enabling/Disabling Buttons
Re: Enabling/Disabling Buttons
- Subject: Re: Enabling/Disabling Buttons
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 14 Aug 2001 11:38:56 +0200
On mardi, ao{t 14, 2001, at 07:05 AM, Farl wrote:
Cannot seem to find the code to this anywhere. And certainly not in the
docs.
I need to disable a button until a certain set of events has occured.
Then it should be enabled until it is used, and then disabled again. In
refering to enable/disable, i mean where you can still see the button,
but it is greyed out, so you cannot press it.
What is the command call?
Does it need an outlet/action to be created especially for this?
Any help is appreciated
[myButton setEnabled:YES];
[myButton setEnabled:NO];
I guess it's in NSControl documentation.