Re: Dumb Button binding Question
Re: Dumb Button binding Question
- Subject: Re: Dumb Button binding Question
- From: Matt Neuburg <email@hidden>
- Date: Thu, 09 Mar 2006 11:08:23 -0800
- Thread-topic: Dumb Button binding Question
On Thu, 9 Mar 2006 15:47:06 +0000, Matt Gough <email@hidden> said:
>I have a panel window with a text field, a cancel button and an OK
>button.
>
>Is it possible to bind the enabled state of the OK button to whether
>the text field is not empty?
Bind the text field's value to something. Let's called that "something".
Make sure it continuously updates value. Now bind the OK button's enabled to
"something" through the NSIsNotNil transformer. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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