Instance Property

groupsByEvent

A Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop.

Declaration

var groupsByEvent: Bool { get set }

Discussion

true if the receiver automatically creates undo groups around each pass of the run loop, otherwise false.

The default is true. If you turn automatic grouping off, you must close groups explicitly before invoking either undo() or undoNestedGroup().

See Also

Creating Undo Groups

func beginUndoGrouping()

Marks the beginning of an undo group.

func endUndoGrouping()

Marks the end of an undo group.

var groupingLevel: Int

The number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software