aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFileManagerAdditions.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-19 13:57:15 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-19 13:57:15 +0000
commit8915074c6393bdc5cbaa7900299122f0d4e365be (patch)
tree639dc351971b8b7661fa216ebfb41c9406fb2c0e /Source/SPFileManagerAdditions.h
parent6cf7762d7ae11c75698c11ffee0822b3ead24932 (diff)
downloadsequelpro-8915074c6393bdc5cbaa7900299122f0d4e365be.tar.gz
sequelpro-8915074c6393bdc5cbaa7900299122f0d4e365be.tar.bz2
sequelpro-8915074c6393bdc5cbaa7900299122f0d4e365be.zip
• added SPFileManagerAdditions
- [(NSString*)applicationSupportDirectoryForSubDirectory:error:] Return the application support folder of the current application for 'subDirectory'. If this folder doesn't exist it will be created. If 'subDirectory' == nil it only returns the application support folder of the current application. • added SPThemesSupportFolder constant
Diffstat (limited to 'Source/SPFileManagerAdditions.h')
-rw-r--r--Source/SPFileManagerAdditions.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/SPFileManagerAdditions.h b/Source/SPFileManagerAdditions.h
new file mode 100644
index 00000000..70de36f0
--- /dev/null
+++ b/Source/SPFileManagerAdditions.h
@@ -0,0 +1,32 @@
+//
+// $Id$
+//
+// SPFileManagerAdditions.h
+// sequel-pro
+//
+// Created by Hans-Jörg Bibiko on August 19, 2010
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// More info at <http://code.google.com/p/sequel-pro/>
+
+#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
+
+@interface NSFileManager (SPFileManagerAdditions)
+
+- (NSString*)applicationSupportDirectoryForSubDirectory:(NSString*)subDirectory error:(NSError **)errorOut;
+
+@end