Instance Property

canUndo

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

Declaration

@property(readonly) BOOL canUndo;

Discussion

YES if the receiver has any actions to undo, otherwise NO.

The return value does not mean you can safely invoke undo or undoNestedGroup—you may have to close open undo groups first.

See Also

Checking Undo Ability

canRedo

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