File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ -(void)pluginInitialize {
28
28
logDebug (@" pluginInitialize()" );
29
29
cachedDatabases = [NSMutableDictionary dictionaryWithCapacity: 0 ];
30
30
dbQueues = [NSMutableDictionary dictionaryWithCapacity: 0 ];
31
- NSURL *dbDir = [self getDatabaseDir ];
31
+ NSString *dbDir = [self getDatabaseDir ];
32
32
33
33
// create storage directory if it doesn't exist
34
34
[[NSFileManager defaultManager ] createDirectoryAtPath: dbDir
@@ -46,11 +46,11 @@ - (dispatch_queue_t)getDatabaseQueue:(NSString *)dbName {
46
46
return q;
47
47
}
48
48
49
- -(NSURL *) getDatabaseDir {
50
- NSURL *appSupportDir = nil ;
49
+ -(NSString *) getDatabaseDir {
50
+ NSString *appSupportDir = nil ;
51
51
appSupportDir = [NSSearchPathForDirectoriesInDomains (NSApplicationSupportDirectory, NSUserDomainMask, YES ) objectAtIndex: 0 ];
52
52
NSString *appBundleID = [[NSBundle mainBundle ] bundleIdentifier ];
53
- return [appSupportDir URLByAppendingPathComponent: appBundleID];
53
+ return [NSString stringWithFormat: @" %@ / %@ " , appSupportDir, appBundleID];
54
54
}
55
55
56
56
-(id ) getPathForDB : (NSString *)dbName {
You can’t perform that action at this time.
0 commit comments