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: Peter Hudson <email@hidden>
- Date: Wed, 04 May 2011 17:22:04 +0100
In IB set the button to be disabled.
Set yourself up a delegate for the text field and let the delegate
respond to
-(void)controlTextDidChange:(NSNotification *)aNotification
It is also convenient if the delegate has a pointer to the button as
well.
When the delegate receives this notification you can then inspect what
the user has typed
and set the button state accordingly.
Peter
_______________________________________________
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