Created
January 12, 2014 21:46
-
-
Save lukaskubanek/8390993 to your computer and use it in GitHub Desktop.
Disabling undo for a specific operation of Core Data
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
- (void)method | |
{ | |
NSUndoManager *undoManager = [self undoManager]; | |
[undoManager disableUndoRegistration]; | |
/* do something */ | |
[self.managedObjectContext processPendingChanges]; | |
[undoManager enableUndoRegistration]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment