• 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
Is this how you can use bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Is this how you can use bindings?
      • From: Ron Lue-Sang <email@hidden>
  • Prev by Date: DICOM images in Cocoa
  • Next by Date: Re: DICOM images in Cocoa
  • Previous by thread: Re: DICOM images in Cocoa
  • Next by thread: Re: Is this how you can use bindings?
  • Index(es):
    • Date
    • Thread