Skip navigation.
 
mlRe: Cocoa bindings with NSUserDefaultsController
FROM : Keary Suska
DATE : Tue Jul 11 19:52:45 2006

on 7/11/06 11:11 AM, <email_removed> purportedly said:

> [theDefaultsController setValue:newUserName forKey:@"values.userName"];
>
>
> Trying the above, it fails with an error:
>
> [<NSUserDefaultsController 0x3e6800> setValue:forUndefinedKey:]: this
> class is not key value coding-compliant for the key values.userName


Bindings are more likely calling:

[theDefaultsController setValue:newUserName forKeyPath:@"values.userName"];

Which is a different animal, and likely why you are seeing the error.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

Related mailsAuthorDate
mlCocoa bindings with NSUserDefaultsController David Hoerl Jul 11, 19:11
mlRe: Cocoa bindings with NSUserDefaultsController Keary Suska Jul 11, 19:52