Silly me, I needed to observe the controller itself, not the values...
duh! :-p
[[NSUserDefaultsController sharedUserDefaultsController]
addObserver:self
forKeyPath:[@"values." stringByAppendingString:preferenceKey]
options:NSKeyValueObservingOptionNew
context:NULL];
- Greg
On Jul 6, 2008, at 4:18 PM, Greg wrote:
I have a preferences controller (PreferencesController) that
controls a preferences window. It would be quite nice if I could
observe changes to all of the preferences via key-value observing.
In IB I also have an NSUserDefaultsController that's hooked up to
all the controls, I've tried observing its 'values' but that doesn't
seem to work.
Thanks,
- Greg
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/greg
%40kinostudios.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]