The number of nested undo groups (or redo groups, if Redo was invoked last) in the current event loop.
- iOS 3.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
An integer indicating the number of nested groups. If 0 is returned, there is no open undo or redo group.
Creating Undo Groups
A Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop.
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