Disables the recording of undo operations, whether by
register or by invocation-based undo.
- iOS 3.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
This method can be invoked multiple times by multiple clients. The
enable method must be invoked an equal number of times to re-enable undo registration.