Re: Help with undo/redo and NSArrayController
Re: Help with undo/redo and NSArrayController
- Subject: Re: Help with undo/redo and NSArrayController
- From: Mike Abdullah <email@hidden>
- Date: Tue, 11 Apr 2006 19:09:40 +0100
Thanks very much Jerry. That post was a massive help - no idea how
my previous search of the archives didn't find it!
I'm considering filing an enhancement request for this on the the
document. It seems to me that the they could be a lot clearer on how
to use NSUndoManager in this respect.
In the end my problem was twofold:
1. Lack of understanding of NSUndoManager (as above)
2. My MVC setup not quite right, so I had to correct that as well.
Thanks,
Mike.
On 11 Apr 2006, at 05:25AM, Jerry Krinock wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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