Re: Enabling/Disabling Buttons
Re: Enabling/Disabling Buttons
- Subject: Re: Enabling/Disabling Buttons
- From: email@hidden
- Date: Tue, 14 Aug 2001 14:32:02 -0500 (CDT)
Besides pointing out the need for a search mechanism, I think this also
points out one thing the documentation lacks compared with Sun's
(and other's) javadocs - a list of methods available to a class as a
result of inheritance with links to that class, and mention of
related classes (known child classes, etc.). I had assumed this would be
in Apple's java documentation as it's rather standard and that would be
a way around the lack of it in the Obj-C documentation but sadly, no.
This is something that should change as it results in confusion (esp. in
newcomers) and lost time searching through every super class for the right
method when a simple list is much quicker.
-Ben
On Tue, 14 Aug 2001, [iso-8859-1] Stiphane Sudre wrote:
>
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.
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev