Instance Property

groupingLevel

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

Declaration

var groupingLevel: Int { get }

Discussion

An integer indicating the number of nested groups. If 0 is returned, there is no open undo or redo group.

See Also

Creating Undo Groups

func beginUndoGrouping()

Marks the beginning of an undo group.

func endUndoGrouping()

Marks the end of an undo group.

var groupsByEvent: Bool

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