• 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
Making a bound view re-read its value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Making a bound view re-read its value
      • From: Negm-Awad Amin <email@hidden>
    • Re: Making a bound view re-read its value
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: CoreData, Object/Array Controllers and KVO
  • Next by Date: NSPanel not receiving events.
  • Previous by thread: Re: Threading problem using AsyncSocket (Matthew Youney)
  • Next by thread: Re: Making a bound view re-read its value
  • Index(es):
    • Date
    • Thread