Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Forcing true reset of managed object context
- (BOOL)hardResetContext:(NSManagedObjectContext *)context store:(NSPersistentStore *)store;
NSPersistentStoreCoordinator *storeCoordinator = [context persistentStoreCoordinator];
if (![storeCoordinator removePersistentStore:myStore error:NULL])
return NO;
return [storeCoordinator addPersistentStoreWithType:[store type]
URL:[store URL]

This comment has been minimized.

Copy link

bafnaparag commented Jan 27, 2015

What will happen if you have strong reference to managed objects ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.