Created
March 12, 2011 14:41
-
-
Save mikeabdullah/867284 to your computer and use it in GitHub Desktop.
Apple's recommended way to disable undo registration for NSManagedObjectContext
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[self managedObjectContext] processPendingChanges]; | |
[[[self managedObjectContext] undoManager] disableUndoRegistration]; | |
// Make your special changes to the managed object | |
[[self managedObjectContext] processPendingChanges]; | |
[[[self managedObjectContext] undoManager] enableUndoRegistration]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment