Skip to content

Instantly share code, notes, and snippets.

@cruffenach
Created January 30, 2013 18:45
Show Gist options
  • Save cruffenach/4675617 to your computer and use it in GitHub Desktop.
Save cruffenach/4675617 to your computer and use it in GitHub Desktop.
// save parent to disk asynchronously
[mainMOC performBlock:^{
NSError *error;
if (![mainMOC save:&error])
{
// handle error
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment