NSEditorRegistration

A set of methods that controllers can implement to enable an editor view to inform the controller when it has uncommitted changes.

Overview

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 informal protocol. You would implement this protocol if you wanted to provide your own controller class without subclassing NSController.

Topics

Managing Editing

func objectDidBeginEditing(Any)

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

func objectDidEndEditing(Any)

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

See Also

Edit Management

NSEditor

A set of methods that controllers and UI elements can implement to manage editing.