• 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
change binding's value transformer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

change binding's value transformer?


  • Subject: change binding's value transformer?
  • From: Matt Emerson <email@hidden>
  • Date: Fri, 15 Jul 2005 16:36:39 -0400

I'm playing with bindings and value transformers.

This is sort of an elaboration of the basic temperature
converter example.

I have a text field and a pop-up menu.  The text field displays
a temperature, and the pop-up menu displays various units
(kelvins, celsius, fahrenheit).  I bind text field's value
to an NSObjectController with key path selection.temperature.

Now, when the user picks a temperature scale from the pop-up
menu, I want to change the value transformer appropriately.

Is there anything wrong, stylistically or otherwise, with
unbinding the text field and re-binding it with a new value
transformer?  Doing this seems to work fine.

I searched the documentation, and found no way to update an
established binding's value transformer.




_______________________________________________ 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: change binding's value transformer?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Seeking advice: which "Design Patterns" book is best
  • Next by Date: Re: ignoring double clicks
  • Previous by thread: How to get NSScriptObjectSpecifier from NSAppleEventDescriptor?
  • Next by thread: Re: change binding's value transformer?
  • Index(es):
    • Date
    • Thread