Graham Cox wrote:
I am getting funny results using grouping in NSUndoManager.

If I begin a group on mouse down, and end the group on mouse up, even if I do nothing in between, it seems to record an undo task, with the plain name "Undo" in the menu, dirtying the document. The "task" is null - it doesn't actually undo anything.

What does your undo manager's -(BOOL)groupsByEvent method say? Default is YES, so for each event a group is open and closed. You didn't mention calling -setGroupsByEvent: so I assume it is left to the default value?

Florent
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to