Re: Disabled NSButton
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