Re: Undo without Redo

2009-07-12 Thread Dave Fernandes
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

Re: Undo without Redo

2009-07-12 Thread Greg Titus
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

Re: Undo without Redo

2009-07-12 Thread Jean-Daniel Dupas
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

Re: Undo without Redo

2009-07-12 Thread I. Savant
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

Undo without Redo

2009-07-12 Thread John Nairn
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