Re: Enable a button once text is added to textfield
Re: Enable a button once text is added to textfield
- Subject: Re: Enable a button once text is added to textfield
- From: Kyle Sluder <email@hidden>
- Date: Tue, 03 May 2011 23:00:42 -0700
On May 3, 2011, at 9:10 AM, Eric Williams <email@hidden> wrote:
> Any suggestions on how I can bind a button to a textfield so that the button is disabled when the field is empty, and then enabled once text has been entered in the field?
The typical MVC approach would be to bind your buttons enabled binding to a key on a controller object that, in turn, reflects the state of your text field.
Remember, the controller is where everything meets.
--Kyle Sluder_______________________________________________
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