Alexander,
If you have a bunch of keys in your defaults, try only observing the
specific key. Like this...
- (void)awakeFromNib
{
//setup key observer here
[[NSUserDefaults standardUserDefaults] addObserver:self
forKeyPath:@"App
NSUserDefaultsDidChangeNotification
On 09-Oct-08, at 5:51 PM, Alexander Shmelev wrote:
Hello,
My program UI depends on what measurement units are used.
How can I get notification when "AppleMeasurementUnits" have been
changed by "Preferences" application?
Best regards, Alexander.
Hello,
My program UI depends on what measurement units are used.
How can I get notification when "AppleMeasurementUnits" have been
changed by "Preferences" application?
Best regards, Alexander.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pl