Re: CoreData and NSUndoManager/Undo Grouping...

2009-03-04 Thread Jean-Nicolas Jolivet
Well, I have absolutely no idea why I managed to get it to work but, all I did was this: Changed this code: - (IBAction)saveChanges:(id)sender { [[[myDoc managedObjectContext] undoManager] endUndoGrouping]; [[[myDoc managedObjectContext] undoManager] setActionName:@"Item Editing"];

CoreData and NSUndoManager/Undo Grouping...

2009-03-03 Thread Jean-Nicolas Jolivet
I'm trying to set up undo grouping properly for my editing dialog (i.e. when a user edits a ManagedObject, the whole editing process can be undo...) I've read a couple of articles/tutorials about using undo grouping for Core Data but they all involved 2 things: An editing window/sheet and a