Instance Property


Boolean value that indicates whether the next undo action is discardable.


@property(readonly) BOOL undoActionIsDiscardable;


YES if the action is discardable; NO otherwise.

Specifies that the latest undo action may be safely discarded when a document can not be saved for any reason. These are typically actions that don’t affect persistent state.

An example might be an undo action that changes the viewable area of a document.

See Also

Discardable Undo and Redo Actions

- setActionIsDiscardable:

Sets whether the next undo or redo action is discardable.


Boolean value that indicates whether the next redo action is discardable.

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