On Thu, Feb 19, 2009 at 2:34 PM, Randall Meadows <cocoa-...@not-pc.com> wrote: > The problem is Redo. This is not a symmetric operation, like changing the > color of an object on screen. All I need to do to Redo is call the method > that deletes the card. It seems I need to tell the Undo manager to invoke a > different method, with different arguments, when Redo is invoked, but I've > not found how to do that.
I'm afraid I don't understand the difficulty. In your delete method, you set up an undo operation to call your add method. When undo is invoked, it calls your add method. In there, you set up an undo operation to call your delete method. When redo is invoked, your delete method is invoked, and you go back to the start. There's no need to do anything special to tell the undo manager to do something different, because it happens at a completely different place in your code. Mike _______________________________________________ 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