On 17 Aug 2009, at 18:08, Jerry Krinock wrote:

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.

Levels of undo and nested undo groups are separate things, I think. The message is most likely being generated because you're missing an - endUndoGrouping message somewhere.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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