Next Page > Hide TOC

NSEditorRegistration Protocol Reference

(informal protocol)

Adopted by
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac OS X v10.3 and later.
Companion guide
Declared in
NSKeyValueBinding.h

Overview

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.

An implementor is responsible for tracking which editors have uncommitted changes, and sending those editors commitEditing and discardEditing messages, as appropriate, to force the editor to submit, or discard, their values.

NSController provides an implementation of this protocol. You would implement this protocol if you wanted to provide your own controller class without subclassing NSController.

Tasks

Managing Editing

Instance Methods

objectDidBeginEditing:

This message should be sent to the receiver when editor has uncommitted changes that can affect the receiver.

- (void)objectDidBeginEditing:(id)editor

Availability
See Also
Declared In
NSKeyValueBinding.h

objectDidEndEditing:

This message should be sent to the receiver when editor has finished editing a property belonging to the receiver.

- (void)objectDidEndEditing:(id)editor

Availability
See Also
Declared In
NSKeyValueBinding.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.