I need to delete my persistent store (doing it object by object is not practical because I have over 100,000 objects). I\'ve tried this:
- (IBAction)resetDatabas
You can do it externally given that you only need to do this while developing your application. I have a terminal open in which I remove the store manually before re-running my app. All you need to know is where it is located. I log it to console everytime my app runs with the following code:
[[CoreDataSingleton sharedManager] managedObjectContext]; //be sure to create the store first!
//Find targeted mom file in the Resources directory
NSString *momPath = [[NSBundle mainBundle] pathForResource:@"Parking" ofType:@"mom"];
NSLog(@"momd path: %@",momPath);
Hope that helps!