• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Enabling/Disabling Buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Enabling/Disabling Buttons
      • From: email@hidden
References: 
 >Enabling/Disabling Buttons (From: email@hidden (Farl))

  • Prev by Date: Re: ObjC newbie - simple NSString question
  • Next by Date: Re: Fun with AuthorizationExecuteWithPrivileges...
  • Previous by thread: Enabling/Disabling Buttons
  • Next by thread: Re: Enabling/Disabling Buttons
  • Index(es):
    • Date
    • Thread