Re: "too many nested undo groups" -- What does that mean?
Re: "too many nested undo groups" -- What does that mean?
- Subject: Re: "too many nested undo groups" -- What does that mean?
- From: Alastair Houghton <email@hidden>
- Date: Mon, 17 Aug 2009 20:50:51 +0100
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 (email@hidden)
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:
This email sent to email@hidden