I've found the same problem in a Core Data app where managed objects
are changed by a background thread calling back to the main thread
over several iterations of the event loop, and I need to cancel them
as a group. Here is the trick I used...
NSUndoManager* mgr = [moc undoManager];
// Un
On Jul 12, 2009, at 7:10 AM, John Nairn wrote:
I added an option to cancel some action in the middle of the action.
The most convenient coding was to implement the cancel by calling
undo in the NSUndoManager, but this adds a "Redo" action to redo the
partial or incomplete changes (and leav
Le 12 juil. 09 à 16:10, John Nairn a écrit :
I added an option to cancel some action in the middle of the action.
The most convenient coding was to implement the cancel by calling
undo in the NSUndoManager, but this adds a "Redo" action to redo the
partial or incomplete changes (and leaves
On Jul 12, 2009, at 10:10 AM, John Nairn wrote:
I added an option to cancel some action in the middle of the action.
The most convenient coding was to implement the cancel by calling
undo in the NSUndoManager, but this adds a "Redo" action to redo the
partial or incomplete changes (and leav
I added an option to cancel some action in the middle of the action.
The most convenient coding was to implement the cancel by calling undo
in the NSUndoManager, but this adds a "Redo" action to redo the
partial or incomplete changes (and leaves the data in a poor state).
I can either re-co