On 2009 Aug 17, at 12:50, Alastair Houghton wrote:

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.

The message appears when I click 'Undo'.  Here it is in its entirety:

"undo: NSUndoManager 0x164f7ef0 is in invalid state, undo was called with too many nested undo groups"

Documentation says that "-undo closes the last open undo group and then applies all the undo operations in that group. ... If any unclosed, nested undo groups are on the stack when undo is invoked, it raises an exception."

So if you interpret "nested" in this document to be "more than one open" and "too many" in the log message to be "more than one", this may be the exception I'm seeing.

Thanks, Alastair. I'll check that out. So maybe what they're trying to say with that log message is "... undo was called with more than one open (nested) undo group".

_______________________________________________

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