change binding's value transformer?
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