Instance Property

canRedo

A Boolean value that indicates whether the receiver has any actions to redo.

Declaration

var canRedo: Bool { get }

Discussion

true if the receiver has any actions to redo, otherwise false.

Because any undo operation registered clears the redo stack, this method posts an NSUndoManagerCheckpoint to allow clients to apply their pending operations before testing the redo stack.

See Also

Checking Undo Ability

var canUndo: Bool

A Boolean value that indicates whether the receiver has any actions to undo.