You need to post objectDidBeginEditing: and objectDidEndEditing:
(see NSController docs for more) to the object controller.
Do this from the model setFoo: methods.
No! You should *not* do this. The documentation is very clear about
this. You should change attributes in a key-value observing
compliant manner. Typically this simply means using accessor methods
that follow standard naming conventions (see <http://
developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/
index.html> and in particular <http://developer.apple.com/
documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/
AccessorConventions.html>).
The NSEditorRegistration protocol (which contains the methods
objectDidBeginEditing: and objectDidEndEditing:) is also clearly
defined in the documentation:
"The NSEditorRegistration informal protocol is implemented by
controllers to provide an interface for a view, the editor, to inform
the controller when it has uncommitted changes."
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Protocols/NSEditorRegistration.html>
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden