diff options
author | rowanbeentje <rowan@beent.je> | 2012-06-28 23:23:34 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-06-28 23:23:34 +0000 |
commit | ac7800cfb9b47acbfd6b7fcca9f981d3f1e70808 (patch) | |
tree | a9ecc8347d7fa93f9c1f4f03ccbcc220b4084a6d /Source/SPFileManagerAdditions.m | |
parent | 9bbbbc64e09039d6da3e8b274a771032005c8320 (diff) | |
download | sequelpro-ac7800cfb9b47acbfd6b7fcca9f981d3f1e70808.tar.gz sequelpro-ac7800cfb9b47acbfd6b7fcca9f981d3f1e70808.tar.bz2 sequelpro-ac7800cfb9b47acbfd6b7fcca9f981d3f1e70808.zip |
- Use a per-user temporary directory for SSH tunnels (and bundle dragged temporary files)
Diffstat (limited to 'Source/SPFileManagerAdditions.m')
-rw-r--r-- | Source/SPFileManagerAdditions.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPFileManagerAdditions.m b/Source/SPFileManagerAdditions.m index 22becf92..39cf9f85 100644 --- a/Source/SPFileManagerAdditions.m +++ b/Source/SPFileManagerAdditions.m @@ -147,4 +147,13 @@ NSString* const DirectoryLocationDomain = @"DirectoryLocationDomain"; } ++ (NSString *)temporaryDirectory +{ + NSString *tempDir = NSTemporaryDirectory(); + if (!tempDir) { + tempDir = @"/tmp"; + } + return tempDir; +} + @end |