Re: NSEditor, NSEditorRegistration Protocols
Re: NSEditor, NSEditorRegistration Protocols
- Subject: Re: NSEditor, NSEditorRegistration Protocols
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 7 Mar 2004 09:33:47 -0800
On Mar 7, 2004, at 9:25 AM, Allan Odgaard wrote:
On 7. Mar 2004, at 17:58, mmalcolm crawford wrote:
The observing between controller and view would have to go both
ways, wouldn't it?
I'm not sure why you're arguing? I told you the direction it works.
That's it. If you don't believe me, write an example app.
I am not arguing, I am putting forward what I have been able to
extract from the documentation
The documentation makes it clear that KVO is used to transfer
information from model through controller to view, and that KVC is used
to push values back from views through controllers to models:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaBindings/Concepts/MVC.html>
and observe from experiments
A trivial experiment would be to subclass NSObjectController and
NSTextView, and override, for example, - (void)addObserver:(NSObject
*)anObserver forKeyPath:(NSString *)keyPath
options:(NSKeyValueObservingOptions)options context:(void *)context.
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.