Re: NSUndoManager grouping somewhat broken?
Re: NSUndoManager grouping somewhat broken?
- Subject: Re: NSUndoManager grouping somewhat broken?
- From: Graham Cox <email@hidden>
- Date: Tue, 8 Apr 2008 22:04:15 +1000
Thanks, but unfortunately you're mistaken as far as I and my
exhaustive "project find" command can see - Sketch does not use undo
grouping at all (seems there is no real need for Sketch to deal with
the possibility of multiple undoable operations being grouped because
it's so simple and only really does one kind of editing thing at a
time).
So I'm still looking for confirmation that the empty group problem is
a real bug and some sort of workaround for it.
------
S.O.S.
On 8 Apr 2008, at 5:07 pm, Quincey Morris wrote:
On Apr 7, 2008, at 23:14, Graham Cox wrote:
Can someone confirm that undo groups are broken in this way, or if
they are not broken, explain what the hell the logic is here?
Better still, has anyone written an NSUndoManager subclass that
fixes this?
The Sketch sample project has code to deal with a problem a lot like
this. There are comments in SKTGraphicView.m that lay out the
problem (search for UndoGrouping), and there is code to work around
it. Those comments and that code might contain something you can
adapt to your situation. FWIW.
_______________________________________________
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
_______________________________________________
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