• 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: Binding a text field's editable binding to a matrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding a text field's editable binding to a matrix


  • Subject: Re: Binding a text field's editable binding to a matrix
  • From: Keith Renz <email@hidden>
  • Date: Wed, 19 Jan 2005 13:14:41 -0500

If I bind the text field's 'enabled' binding to this same object, it will be disabled for a value of 0 and enabled for values of 1 and 2 -- it's a BOOL --, which is not the behavior I want. I want the text fields to be enabled only for one selected index, in this case the 3rd radio button, index 2. So, maybe my initial question should have been more precise. It is not obvious to me what needs to be done here.

Implement a value transformer that takes in a number value and outputs a number -- 1 if the input is '2', 0 otherwise.

That's a good idea. I'll give it a try. In reality, this requires more code than using target/action and outlets. So maybe this is one of those cases where bindings is overkill. Regardless, it's a good learning example for me.


Thanks,

Keith

_______________________________________________
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


  • Follow-Ups:
    • Re: Binding a text field's editable binding to a matrix
      • From: mmalcolm crawford <email@hidden>
References: 
 >Binding a text field's editable binding to a matrix (From: Keith Renz <email@hidden>)
 >Re: Binding a text field's editable binding to a matrix (From: mmalcolm crawford <email@hidden>)
 >Re: Binding a text field's editable binding to a matrix (From: Keith Renz <email@hidden>)
 >Re: Binding a text field's editable binding to a matrix (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: NSOpenPanel file types & wildcards
  • Next by Date: Finding out my document's extension
  • Previous by thread: Re: Binding a text field's editable binding to a matrix
  • Next by thread: Re: Binding a text field's editable binding to a matrix
  • Index(es):
    • Date
    • Thread