Instance Property


The maximum number of top-level undo groups the receiver holds.


@property NSUInteger levelsOfUndo;


An integer specifying the number of undo groups. A limit of 0 indicates no limit, so old undo groups are never dropped.

When ending an undo group results in the number of groups exceeding this limit, the oldest groups are dropped from the stack. The default is 0.

If you change the limit to a level below the prior limit, old undo groups are immediately dropped.

See Also

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