Browse files

Switched to use a non-depricated createDirectoryAtPath method.

  • Loading branch information...
1 parent a3200c8 commit 3ba207b4fd8339262a0b58fce1871c11b43aa7de @omh omh committed Aug 22, 2009
Showing with 7 additions and 3 deletions.
  1. +7 −3 Source/AppController+CoreData.m
View
10 Source/AppController+CoreData.m
@@ -96,10 +96,14 @@ - (NSPersistentStoreCoordinator *) persistentStoreCoordinator {
fileManager = [NSFileManager defaultManager];
applicationSupportFolder = [self applicationSupportFolder];
- if ( ![fileManager fileExistsAtPath:applicationSupportFolder isDirectory:NULL] ) {
- [fileManager createDirectoryAtPath:applicationSupportFolder attributes:nil];
+ if ( ![fileManager fileExistsAtPath:applicationSupportFolder isDirectory:NULL] )
+ {
+ [fileManager createDirectoryAtPath:applicationSupportFolder
+ withIntermediateDirectories:YES
+ attributes:nil
+ error:&error];
}
-
+
url = [NSURL fileURLWithPath: [applicationSupportFolder stringByAppendingPathComponent: @"Clyppan.sql"]];
persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel: [self managedObjectModel]];

0 comments on commit 3ba207b

Please sign in to comment.