Re: Help with undo/redo and NSArrayController
Re: Help with undo/redo and NSArrayController
- Subject: Re: Help with undo/redo and NSArrayController
- From: Jerry Krinock <email@hidden>
- Date: Mon, 10 Apr 2006 21:25:32 -0700
- Thread-topic: Help with undo/redo and NSArrayController
on 06/04/10 10:08, Mike Abdullah at email@hidden wrote:
> I'm currently implementing undo/redo functionality in my app and I'm
> having problems with my NSArrayController. When adding an item to
> the array controller, I call from the documents undo manager:
>
> prepareWithInvocationTarget: arrayController] removeObject: newObject];
>
> Now this works fine for the undo functionality, but as soon as I try
> to redo the operation, nothing happens. So I guess the question is,
> what method does the redo functionality call?
The surprising answer is: whatever you tell it to.
I don't understand your issue fully, but it smells like you may benefit from
this post by Bill Cheeseman. Redo does NOT "just work"....
http://www.cocoabuilder.com/archive/message/cocoa/2002/7/12/61349
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden