aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferenceController.m
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/SPPreferenceController.m
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/SPPreferenceController.m')
-rw-r--r--Source/SPPreferenceController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index 79f18b62..2810eeb6 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -31,6 +31,7 @@
#import "SPConnectionController.h"
#import "SPColorAdditions.h"
#import "SPColorWellCell.h"
+#import "SPFileManagerAdditions.h"
@interface SPPreferenceController (PrivateAPI)
@@ -65,8 +66,10 @@
[NSColor setIgnoresAlpha:NO];
- themePath = [[[NSString stringWithString:@"~/Library/Application Support/Sequel Pro/Themes"] stringByExpandingTildeInPath] retain];
+ themePath = [[[NSFileManager defaultManager] applicationSupportDirectoryForSubDirectory:SPThemesSupportFolder error:nil] retain];
+
editThemeListItems = [[NSArray arrayWithArray:[self getAvailableThemes]] retain];
+
}
return self;