Le 12 juil. 09 à 16:10, John Nairn a écrit :
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).
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?
You can create your own undo manager instead of using the shared one.
_______________________________________________
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