Binding button.enabled to "NSTextField is not empty"
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