• 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
Re: Dumb Button binding Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Design Decision: Passing Information Between Two Applications
  • Next by Date: Re: Design Decision: Passing Information Between Two Applications
  • Previous by thread: Re: Dumb Button binding Question
  • Next by thread: NewMovieFromProperties - crashes.
  • Index(es):
    • Date
    • Thread