Instance Method


Enables the recording of undo operations.


func enableUndoRegistration()


Because undo registration is enabled by default, it is often used to balance a prior disableUndoRegistration() message. Undo registration isn’t actually re-enabled until an enable message balances the last disable message in effect. Raises an NSInternalInconsistencyException if invoked while no disableUndoRegistration() message is in effect.

See Also

Enabling and Disabling Undo

func disableUndoRegistration()

Disables the recording of undo operations, whether by registerUndo(withTarget:selector:object:) or by invocation-based undo.

var isUndoRegistrationEnabled: Bool

A Boolean value that indicates whether the recording of undo operations is enabled.