Help with undo/redo and NSArrayController
Help with undo/redo and NSArrayController
- Subject: Help with undo/redo and NSArrayController
- From: Mike Abdullah <email@hidden>
- Date: Mon, 10 Apr 2006 18:08:37 +0100
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?
I suspect that addObject may be called, but my app requires that any
new have two of their properties set in order to work correctly.
Could this be what is causing the problem?
Mike.
_______________________________________________
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