Re: Making a bound view re-read its value
Re: Making a bound view re-read its value
- Subject: Re: Making a bound view re-read its value
- From: "Kyle Sluder" <email@hidden>
- Date: Thu, 14 Aug 2008 18:28:59 -0400
On Thu, Aug 14, 2008 at 6:21 PM, Markus Spoettl
<email@hidden> wrote:
> So how can I manually make the view update? It seems so simple but I can't
> figure out how to do this.
I can think of a couple of ways:
1) When your preference changes, post a notification. The views
listen for that notificiation, and update themselves accordingly.
2) Assuming your preference is being stored in user defaults, bind
your views to the preference through an NSUserDefaultsController. Use
a value transformer to transform the preference value into a string.
Don't forget to localize.
--Kyle Sluder
_______________________________________________
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