I am not understanding when I change 2 values an NSTextField and a NSTextView via
which both have their values bound to Userdefaultscontroller , when I trigger that code and quit the app the new values aren't saved..and the old values are restored..
I did some tinkering around and subscribed to NSUserDefaultsDidChangeNotification and noticed that when I set those values its not even triggering the notification? Have also tried syncronize on the nsuserdefaults within nsuserdefaultscotnroller to no avail (setAppliesImediately is true so a save: would not help)
Do I have to also update NSUserDefaults manually when setting values manually??
can anyone help me out? Not sure why I have this seemingly strange NSUserDefaults behavior
thanks
Code:
_stopwatchLabel setStringValue:@"00:00:00"];
[taskDescription setString:@""];
which both have their values bound to Userdefaultscontroller , when I trigger that code and quit the app the new values aren't saved..and the old values are restored..
I did some tinkering around and subscribed to NSUserDefaultsDidChangeNotification and noticed that when I set those values its not even triggering the notification? Have also tried syncronize on the nsuserdefaults within nsuserdefaultscotnroller to no avail (setAppliesImediately is true so a save: would not help)
Do I have to also update NSUserDefaults manually when setting values manually??
can anyone help me out? Not sure why I have this seemingly strange NSUserDefaults behavior
thanks