• 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
Binding button.enabled to "NSTextField is not empty"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding button.enabled to "NSTextField is not empty"


  • Subject: Binding button.enabled to "NSTextField is not empty"
  • From: Andrew White <email@hidden>
  • Date: Tue, 26 Apr 2005 15:22:29 +1000


I have a button. In the same window, I have a text field. I want the button's 'enabled' state to track the whether the text field is non-empty (you can only click the button if the text field has something in it).


I've found the button's 'enabled' binding, but can't figure out what to put in the fields. What exact steps are required to make this work? Do I need a subclass of NSWindowController (or other object) to act as a data model?

Thanks

--
Andrew White

--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Binding button.enabled to "NSTextField is not empty"
      • From: Johnny Deadman <email@hidden>
    • Re: Binding button.enabled to "NSTextField is not empty"
      • From: Alex Clarke <email@hidden>
  • Prev by Date: Re: #define issues
  • Next by Date: Re: Binding button.enabled to "NSTextField is not empty"
  • Previous by thread: Re: bind, unbind and retainCount problems
  • Next by thread: Re: Binding button.enabled to "NSTextField is not empty"
  • Index(es):
    • Date
    • Thread