Making a bound view re-read its value
Making a bound view re-read its value
- Subject: Making a bound view re-read its value
- From: Markus Spoettl <email@hidden>
- Date: Thu, 14 Aug 2008 15:21:47 -0700
Hi List,
how can I make a view value which is bound to a property manually
re-read (or update) the value it displays?
The simplified setup is this: I have an object, that stores its values
(say a temperature) in Celcius. I also have an application preference
that lets the user switch between temperatures in Celcius and
Fahrenheit for viewing and editing. The view's value binding uses a
value transformer that converts the value based on the current
application setting.
When the user changes the preference, the view should update its value
so it uses the right units. There is no change to the underlying data,
so there's no change notification that would force the binding to
refresh the view.
So how can I manually make the view update? It seems so simple but I
can't figure out how to do this.
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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