Re: NSUndoManager grouping somewhat broken?
Re: NSUndoManager grouping somewhat broken?
- Subject: Re: NSUndoManager grouping somewhat broken?
- From: Florent Pillet <email@hidden>
- Date: Tue, 08 Apr 2008 09:06:59 +0200
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 (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