I'm getting a reproducible "too many nested undo groups" message logged.

But I don't know what to look for because I don't know what that means. How many is "too many"? Of what? Is there any way to see the number?

Here is what I have found by experiment:
   Whenever I -beginUndoGrouping, -groupingLevels is incremented.
   Whenever I -endUndoGrouping, -groupingLevels is decremented.
   If I -endUndoGrouping when -groupingLevels is 0, I get an
      exception: -endUndoGrouping invoked with no matching begin.

All this makes sense. Then, by extension, "too many nested undo groups" implies that -groupingLevels is too high. But by default, - levelsOfUndo is inifinite.

The "Undo Architecture" document seems to just scratch the surface in so many places! If someone can answer this I'll happily file a bug.

Thank you,

Jerry Krinock
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to