• 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: Disabled NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabled NSButton


  • Subject: Re: Disabled NSButton
  • From: Chris Hanson <email@hidden>
  • Date: Thu, 04 Sep 2008 13:55:14 -0700

On Sep 4, 2008, at 12:33 PM, Ronnie B <email@hidden> wrote:

I would like to have 'Ok' button disabled as long as the password field is empty.

Add a -canLogIn method to the panel's controller that returns YES when the user has entered a password. Then bind your button's enabled state to your controller's canLogIn property.


-- Chris _______________________________________________

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


References: 
 >Disabled NSButton (From: "Ronnie B" <email@hidden>)

  • Prev by Date: Re: NSNotificationCenter removeObserver NOT working
  • Next by Date: NSTask Question
  • Previous by thread: Re: Disabled NSButton
  • Next by thread: Core Data Form
  • Index(es):
    • Date
    • Thread