Re: How much does NSObject's bind:toObject:withKeyPath:options: do?
Re: How much does NSObject's bind:toObject:withKeyPath:options: do?
- Subject: Re: How much does NSObject's bind:toObject:withKeyPath:options: do?
- From: "R. Matthew Emerson" <email@hidden>
- Date: Thu, 21 Sep 2006 11:23:23 -0400
On Sep 21, 2006, at 6:35 AM, Mailing list subscriptions wrote:
Background info:
- my class is a controller class; not a model or a view
- some aspects of the behaviour of the controller should change
according to user preferences
- I'd therefore like to bind a couple of instance variables in the
controller to the corresponding values in the NSUserDefaults,
mediated via NSUserDefaultsController
I don't think Cocoa Bindings is the right tool here.
In the case you describe, in your custom controller, I would just
register for NSUserDefaultsDidChangeNotifiction and get the updated
defaults upon receipt of the notification. (Presumably this is what
you meant by "do it manually.")
_______________________________________________
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