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