Skip to content

Instantly share code, notes, and snippets.

@lukaskubanek
Created January 12, 2014 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaskubanek/8390993 to your computer and use it in GitHub Desktop.
Save lukaskubanek/8390993 to your computer and use it in GitHub Desktop.
Disabling undo for a specific operation of Core Data
- (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