Is this how you can use bindings?
Is this how you can use bindings?
- Subject: Is this how you can use bindings?
- From: Chris Idou <email@hidden>
- Date: Tue, 12 Aug 2008 23:21:24 -0700 (PDT)
I want a button to be enabled when myTextField is not empty.
Can have an outlet in my controller called myTextField, and then set the "Enabled" binding on the button to point to myTextField.stringValue.length, then can I write a transformer called GreaterThanZero to return boolean if the input is greater than zero?
Is that a valid way to go about this problem? It doesn't seem to be working for me. I wrote a myTextField accessor to see what is happening and it doesn't even seem to get called.
_______________________________________________
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