Thread-topic: Help with undo/redo and NSArrayController
User-agent: Microsoft-Entourage/11.2.3.060209
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden