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.

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