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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to