Instance Method

endUndoGrouping()

Marks the end of an undo group.

Declaration

func endUndoGrouping()

Discussion

All individual undo operations back to the matching beginUndoGrouping() message are grouped together and reversed by a later undo() or undoNestedGroup() message. Undo groups can be nested, thus providing functionality similar to nested transactions. Raises an NSInternalInconsistencyException if there’s no beginUndoGrouping() message in effect.

This method posts an NSUndoManagerCheckpoint and an NSUndoManagerDidCloseUndoGroup just before the group is closed.

See Also

Creating Undo Groups

func beginUndoGrouping()

Marks the beginning 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.

var groupingLevel: Int

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