Reputation: 715
I have an NSTextField
and it has a binding for its "value" property to "Shared User Defaults Controller", Controller Key "values", Model Key Path "myName".
Is there a way to change the value in code?
Upvotes: 0
Views: 64
Reputation: 90531
Just set the appropriate value in the user defaults:
[[NSUserDefaults standardUserDefaults] setObject:@"Some new name" forKey:@"myName"];
Upvotes: 1