• 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: Enable a button once text is added to textfield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSClassFormString returning nil.
  • Next by Date: Re: NSClassFormString returning nil.
  • Previous by thread: Re: Enable a button once text is added to textfield
  • Next by thread: Error in documentation: Cocoa Drawning Guide
  • Index(es):
    • Date
    • Thread