Re: NSObjectController and NSDefaultsController Binding?
Re: NSObjectController and NSDefaultsController Binding?
- Subject: Re: NSObjectController and NSDefaultsController Binding?
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 21 Apr 2004 21:24:17 -0700
From Drafts from a few days ago...
On Apr 18, 2004, at 2:37 PM, Allan Odgaard wrote:
So in my example the model object (receiver of bind:...) had to be KVC
compliant for the key "title" and the controller had to be KVO
compliant for the key "values.title". No other requirements should
exist.
Not so.
The observer must also know to send a setValue:forKey: message to the
observed controller if and when the value associated with its (the
observer's) binding changes. For the model object in your example:
[model bind:@"title"
toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:@"values.title"
options:nil];
this is unlikely to be the case.
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.