• 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: 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

References: 
 >Enable a button once text is added to textfield (From: Eric Williams <email@hidden>)

  • Prev by Date: Re: Error in documentation: Cocoa Drawning Guide
  • Next by Date: Re: Instruments and leaks in a DRM framework
  • Previous by thread: Enable a button once text is added to textfield
  • Next by thread: Re: Enable a button once text is added to textfield
  • Index(es):
    • Date
    • Thread