Re: change binding's value transformer?
Re: change binding's value transformer?
- Subject: Re: change binding's value transformer?
- From: Theodore Petrosky <email@hidden>
- Date: Sat, 16 Jul 2005 06:28:56 -0700 (PDT)
There isn't without re-binding. just unbind the
arraycontroller, create a new options dictionary and
rebind. at least this is what I am doing and it works
fine.
Ted
------------------------------
<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 You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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