I have this code:
Store* store = [NSEntityDescription insertNewObjectForEntityForName:@\"Store\"]; store.name = @\"My Company\" ...
Now the sto
Undo works only when I create a undoManager(Swift 5):
Undo
undoManager
managedObjectContext.undoManager = UndoManager()
After this configuration you can undo a last change:
managedObjectContext.undo()