Re: Undo without Redo
Re: Undo without Redo
- Subject: Re: Undo without Redo
- From: "I. Savant" <email@hidden>
- Date: Sun, 12 Jul 2009 10:48:01 -0400
On Jul 12, 2009, at 10:10 AM, John Nairn wrote:
I added an option to cancel some action in the middle of the action.
The most convenient coding was to implement the cancel by calling
undo in the NSUndoManager, but this adds a "Redo" action to redo the
partial or incomplete changes (and leaves the data in a poor state).
That doesn't sound convenient at all. :-)
I can either re-code the change process or for an alternative, is
there a way to perform to top level undo without having it moved to
the redo stack? Or, similarly, is there a way to perform an undo and
then remove the top most item in the redo stack?
Don't break / short-circuit the Undo/Redo mechanism on purpose.
This is poor design. Redesign your approach to canceling the
operation. If you need help on that approach, post the specifics.
--
I.S.
_______________________________________________
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