Created
March 1, 2012 12:49
-
-
Save FlaviuSim/1949658 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
NSError *error = nil; | |
NSURL *storeURL = [NSURLfileURLWithPath:storePath]; | |
__persistentStoreCoordinator = [[NSPersistentStoreCoordinatoralloc] initWithManagedObjectModel:[selfmanagedObjectModel]]; | |
if (![__persistentStoreCoordinatoraddPersistentStoreWithType:NSSQLiteStoreTypeconfiguration:nilURL:storeURL options:nilerror:&error]) { | |
NSLog(@"Unresolved error %@, %@", error, [error userInfo]); | |
abort(); | |
} | |
NSLog(@"Final Store path is: %@", [storeURL path]); | |
return__persistentStoreCoordinator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment