From b02296de248c954e951fea184ad91e3164fb3976 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 19 Aug 2010 08:56:40 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20Edit=20Theme=20List=20to=20Editor?= =?UTF-8?q?=20Prefs=20for=20renaming/deleting/duplicating=20themes=20?= =?UTF-8?q?=E2=80=A2=20fixed=20some=20issues=20for=20saving=20a=20theme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit note: since it isn't a frequently used feature this should be enough --- Interfaces/English.lproj/Preferences.xib | 772 ++++++++++++++++++++++++++++--- Source/SPPreferenceController.h | 11 +- Source/SPPreferenceController.m | 134 +++++- 3 files changed, 848 insertions(+), 69 deletions(-) diff --git a/Interfaces/English.lproj/Preferences.xib b/Interfaces/English.lproj/Preferences.xib index 46df42c1..75cab4bf 100644 --- a/Interfaces/English.lproj/Preferences.xib +++ b/Interfaces/English.lproj/Preferences.xib @@ -21,7 +21,6 @@ YES - @@ -605,7 +604,7 @@ 12 {{202.5, 176}, {360, 5}} - {{5.5, 0}, {349, 5}} + {{7, 0}, {346, 5}} {0, 0} @@ -3276,7 +3275,7 @@ AQAAAAA NSView - + 268 YES @@ -3483,9 +3482,9 @@ AQAAAAA YES - + - Save current Theme… + Save Current Theme As… 2147483647 @@ -3495,14 +3494,14 @@ AQAAAAA - Load saved Theme + Load Theme 2147483647 submenuAction: - Load saved Theme + Load Theme YES @@ -3523,7 +3522,7 @@ AQAAAAA - Export current Color Theme… + Export Current Color Theme… 1048576 2147483647 @@ -3548,7 +3547,6 @@ AQAAAAA - 4 YES 1 YES @@ -4160,10 +4158,13 @@ AQAAAAA {580, 361} - NSView + + YES + _dummy + YES @@ -4240,15 +4241,15 @@ AQAAAAA 1 2 - {{343, 491}, {216, 104}} + {{343, 471}, {247, 124}} 1886912512 NSWindow View - {216, 104} - {216, 104} + {247, 124} + {247, 124} 256 @@ -4257,7 +4258,7 @@ AQAAAAA 256 - {{17, 76}, {182, 14}} + {{17, 96}, {213, 14}} YES @@ -4270,10 +4271,30 @@ AQAAAAA + + + 256 + {{18, 55}, {212, 11}} + + YES + + 68288064 + 4457472 + already exists and will be overwritten! + + LucidaGrande + 9 + 3614 + + + + + + 258 - {{20, 50}, {176, 18}} + {{20, 70}, {207, 18}} YES @@ -4290,7 +4311,7 @@ AQAAAAA 259 - {{113, 13}, {88, 28}} + {{132, 13}, {100, 28}} 1 YES @@ -4317,7 +4338,7 @@ AQAAAAA 259 - {{15, 13}, {88, 28}} + {{15, 13}, {99, 28}} YES @@ -4336,12 +4357,244 @@ AQAAAAA - {216, 104} + {247, 124} {{0, 0}, {1280, 778}} - {216, 126} - {216, 126} + {247, 146} + {247, 146} + + + 1 + 2 + {{343, 321}, {264, 274}} + 1886912512 + + NSWindow + + View + + {264, 274} + {264, 274} + + + 256 + + YES + + + 259 + {{161, 13}, {88, 28}} + + YES + + 67239424 + 138018816 + Close + + + -2038284033 + 1 + + + Gw + 200 + 25 + + + + + 268 + + YES + + + 2304 + + YES + + + 256 + {264, 187} + + YES + + + -2147483392 + {{224, 0}, {16, 17}} + + + YES + + 261 + 40 + 1000 + + 75628096 + 2048 + + + + 3 + MC4zMzMzMzI5ODU2AA + + + + + 337772096 + 2048 + Text Cell + + + + + + 3 + YES + YES + + + + 3 + 2 + + + 17 + 37748736 + + + 4 + 15 + 0 + YES + 0 + + + {{1, 1}, {264, 187}} + + + + + 4 + + + + -2147483392 + {{224, 17}, {15, 102}} + + + _doScroller: + 0.99468082189559937 + + + + -2147483392 + {{-100, -100}, {223, 15}} + + 1 + + _doScroller: + 0.57142859697341919 + + + {{-1, 74}, {266, 189}} + + + 530 + + + + QSAAAEEgAABBmAAAQZgAAA + + + + 268 + + YES + + + 268 + {{-1, -1}, {32, 24}} + + YES + + 67239424 + 134348800 + + + + -2033958657 + 268435491 + + NSImage + button_duplicate + + + d + 200 + 25 + + + + + 268 + {{30, -1}, {32, 24}} + + YES + + 67239424 + 134348800 + + + + -2033958657 + 35 + + NSImage + button_remove + + +  + 200 + 25 + + + + {{0, 52}, {280, 23}} + + YES + YES + NO + 0 + + + + 12 + {{-1, 49}, {265, 5}} + + {0, 0} + + 67239424 + 0 + Box + + + + 3 + MCAwLjgwMDAwMDAxMTkAA + + + 3 + 2 + 0 + NO + + + {264, 274} + + {{0, 0}, {1280, 778}} + {264, 296} + {264, 296} @@ -6504,14 +6757,6 @@ AQAAAAA 1693 - - - saveColorScheme: - - - - 1713 - themeSelectionMenu @@ -6641,6 +6886,167 @@ AQAAAAA 1755 + + + closePanelSheet: + + + + 1770 + + + + dataSource + + + + 1780 + + + + delegate + + + + 1781 + + + + editThemeListTable + + + + 1782 + + + + editThemeListWindow + + + + 1790 + + + + saveAsColorScheme: + + + + 1797 + + + + removeTheme: + + + + 1815 + + + + removeThemeButton + + + + 1816 + + + + duplicateThemeButton + + + + 1817 + + + + duplicateTheme: + + + + 1818 + + + + initialFirstResponder + + + + 1819 + + + + nextKeyView + + + + 1820 + + + + nextKeyView + + + + 1821 + + + + nextKeyView + + + + 1822 + + + + nextKeyView + + + + 1823 + + + + enterNameAlertField + + + + 1826 + + + + fontBold: values._dummy + + + + + + fontBold: values._dummy + fontBold + values._dummy + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + + + YES + + + + + + + 2 + + + 1834 + @@ -9221,9 +9627,9 @@ AQAAAAA - + @@ -9301,11 +9707,6 @@ AQAAAAA - - 1708 - - - 1709 @@ -9345,8 +9746,9 @@ AQAAAAA YES - + + @@ -9434,6 +9836,148 @@ AQAAAAA + + 1756 + + + YES + + + + Edit Theme List Sheet + + + 1757 + + + YES + + + + + + + + + 1759 + + + YES + + + + + + 1764 + + + + + 1771 + + + YES + + + + + + + + 1772 + + + + + 1773 + + + + + 1774 + + + YES + + + + + + 1776 + + + YES + + + + + + 1779 + + + + + 1796 + + + + + 1809 + + + YES + + + + + + + 1810 + + + YES + + + + + + 1811 + + + + + 1812 + + + YES + + + + + + 1813 + + + + + 1814 + + + + + 1824 + + + YES + + + + + + 1825 + + + @@ -9697,8 +10241,6 @@ AQAAAAA 17.IBEditorWindowLastContentRect 17.IBPluginDependency 17.IBUserGuides - 1708.IBAttributePlaceholdersKey - 1708.IBPluginDependency 1709.IBPluginDependency 1710.IBEditorWindowLastContentRect 1710.IBPluginDependency @@ -9730,6 +10272,36 @@ AQAAAAA 1740.IBAttributePlaceholdersKey 1740.IBPluginDependency 1741.IBPluginDependency + 1756.IBEditorWindowLastContentRect + 1756.IBPluginDependency + 1756.IBWindowTemplateEditedContentRect + 1756.ImportedFromIB2 + 1756.windowTemplate.hasMaxSize + 1756.windowTemplate.hasMinSize + 1756.windowTemplate.maxSize + 1756.windowTemplate.minSize + 1757.IBPluginDependency + 1757.ImportedFromIB2 + 1759.IBPluginDependency + 1759.ImportedFromIB2 + 1764.IBPluginDependency + 1771.IBPluginDependency + 1772.IBPluginDependency + 1773.IBPluginDependency + 1774.IBPluginDependency + 1776.IBPluginDependency + 1779.IBPluginDependency + 1796.IBAttributePlaceholdersKey + 1796.IBPluginDependency + 1809.IBPluginDependency + 1810.IBPluginDependency + 1811.IBPluginDependency + 1812.IBPluginDependency + 1813.IBPluginDependency + 1814.IBPluginDependency + 1824.IBPluginDependency + 1824.ImportedFromIB2 + 1825.IBPluginDependency 2.IBPluginDependency 24.IBPluginDependency 24.ImportedFromIB2 @@ -10236,7 +10808,7 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{127, 100}, {220, 115}} + {{127, 100}, {222, 115}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -10275,27 +10847,18 @@ AQAAAAA 0 - - ToolTip - - ToolTip - - Save the current set color theme by providing an unique name into Sequel Pro's Application Support folder - - - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{352, 158}, {64, 6}} + {{347, 141}, {64, 6}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{202, 175}, {216, 104}} + {{202, 155}, {247, 124}} com.apple.InterfaceBuilder.CocoaPlugin - {{202, 175}, {216, 104}} + {{202, 155}, {247, 124}} - {216, 104} - {216, 104} + {247, 124} + {247, 124} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -10322,6 +10885,43 @@ AQAAAAA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + {{206, 261}, {264, 274}} + com.apple.InterfaceBuilder.CocoaPlugin + {{206, 261}, {264, 274}} + + + + {264, 274} + {264, 274} + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + ToolTip + + ToolTip + + Save the current set color theme by providing an unique name into Sequel Pro's Application Support folder + + + com.apple.InterfaceBuilder.CocoaPlugin + com.brandonwalkin.BWToolkit + com.brandonwalkin.BWToolkit + com.brandonwalkin.BWToolkit + com.brandonwalkin.BWToolkit + com.brandonwalkin.BWToolkit + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -10655,7 +11255,7 @@ AQAAAAA - 1755 + 1834 @@ -11172,14 +11772,16 @@ AQAAAAA displayNotificationPreferences: displayTablePreferences: duplicateFavorite: + duplicateTheme: exportColorScheme: favoriteTypeDidChange: importColorScheme: loadColorScheme: makeSelectedFavoriteDefault: removeFavorite: + removeTheme: reverseFavoritesSortOrder: - saveColorScheme: + saveAsColorScheme: setDefaultColors: showCustomQueryFontPanel: showGlobalResultTableFontPanel: @@ -11212,6 +11814,8 @@ AQAAAAA id id id + id + id @@ -11229,14 +11833,16 @@ AQAAAAA displayNotificationPreferences: displayTablePreferences: duplicateFavorite: + duplicateTheme: exportColorScheme: favoriteTypeDidChange: importColorScheme: loadColorScheme: makeSelectedFavoriteDefault: removeFavorite: + removeTheme: reverseFavoritesSortOrder: - saveColorScheme: + saveAsColorScheme: setDefaultColors: showCustomQueryFontPanel: showGlobalResultTableFontPanel: @@ -11289,6 +11895,10 @@ AQAAAAA duplicateFavorite: id + + duplicateTheme: + id + exportColorScheme: id @@ -11313,12 +11923,16 @@ AQAAAAA removeFavorite: id + + removeTheme: + id + reverseFavoritesSortOrder: id - saveColorScheme: + saveAsColorScheme: id @@ -11352,8 +11966,12 @@ AQAAAAA colorThemeName colorThemeNameLabel defaultFavoritePopup + duplicateThemeButton + editThemeListTable + editThemeListWindow editorFontName editorView + enterNameAlertField enterNameInputField enterNameLabel enterNameWindow @@ -11373,6 +11991,8 @@ AQAAAAA networkView notificationsView preferencesWindow + removeThemeButton + saveThemeMenuItem socketPasswordField splitViewButtonBar sshPasswordField @@ -11390,10 +12010,14 @@ AQAAAAA NSTextField NSTextField NSPopUpButton + id + NSTableView + NSWindow NSTextField NSView NSTextField NSTextField + NSTextField NSWindow NSTextField NSTextField @@ -11411,6 +12035,8 @@ AQAAAAA NSView NSView NSWindow + id + NSMenuItem NSSecureTextField BWAnchoredButtonBar NSSecureTextField @@ -11431,8 +12057,12 @@ AQAAAAA colorThemeName colorThemeNameLabel defaultFavoritePopup + duplicateThemeButton + editThemeListTable + editThemeListWindow editorFontName editorView + enterNameAlertField enterNameInputField enterNameLabel enterNameWindow @@ -11452,6 +12082,8 @@ AQAAAAA networkView notificationsView preferencesWindow + removeThemeButton + saveThemeMenuItem socketPasswordField splitViewButtonBar sshPasswordField @@ -11484,6 +12116,18 @@ AQAAAAA defaultFavoritePopup NSPopUpButton + + duplicateThemeButton + id + + + editThemeListTable + NSTableView + + + editThemeListWindow + NSWindow + editorFontName NSTextField @@ -11492,6 +12136,10 @@ AQAAAAA editorView NSView + + enterNameAlertField + NSTextField + enterNameInputField NSTextField @@ -11568,6 +12216,14 @@ AQAAAAA preferencesWindow NSWindow + + removeThemeButton + id + + + saveThemeMenuItem + NSMenuItem + socketPasswordField NSSecureTextField @@ -12456,6 +13112,8 @@ AQAAAAA NSMenuMixedState NSSwitch button_add + button_duplicate + button_remove YES @@ -12465,6 +13123,8 @@ AQAAAAA {7, 2} {15, 15} {32, 23} + {128, 128} + {128, 128} diff --git a/Source/SPPreferenceController.h b/Source/SPPreferenceController.h index cba77f5e..39c5f58e 100644 --- a/Source/SPPreferenceController.h +++ b/Source/SPPreferenceController.h @@ -62,9 +62,15 @@ IBOutlet NSWindow *enterNameWindow; IBOutlet NSTextField *enterNameLabel; IBOutlet NSTextField *enterNameInputField; + IBOutlet NSTextField *enterNameAlertField; IBOutlet NSTextField *colorThemeName; IBOutlet NSTextField *colorThemeNameLabel; IBOutlet id themeNameSaveButton; + IBOutlet NSTableView *editThemeListTable; + IBOutlet NSWindow *editThemeListWindow; + IBOutlet id removeThemeButton; + IBOutlet id duplicateThemeButton; + IBOutlet NSMenuItem *saveThemeMenuItem; IBOutlet id tableCell; @@ -103,6 +109,7 @@ NSString *themePath; NSInteger checkForUnsavedThemeSheetStatus; + NSArray *editThemeListItems; } - (void)applyRevisionChanges; @@ -120,9 +127,11 @@ - (IBAction)makeSelectedFavoriteDefault:(id)sender; - (IBAction)exportColorScheme:(id)sender; - (IBAction)importColorScheme:(id)sender; -- (IBAction)saveColorScheme:(id)sender; +- (IBAction)saveAsColorScheme:(id)sender; - (IBAction)loadColorScheme:(id)sender; - (IBAction)closePanelSheet:(id)sender; +- (IBAction)duplicateTheme:(id)sender; +- (IBAction)removeTheme:(id)sender; // Toolbar item IBAction methods diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index 8c2311ee..226003e9 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -66,7 +66,7 @@ [NSColor setIgnoresAlpha:NO]; themePath = [[[NSString stringWithString:@"~/Library/Application Support/Sequel Pro/Themes"] stringByExpandingTildeInPath] retain]; - + editThemeListItems = [[NSArray arrayWithArray:[self getAvailableThemes]] retain]; } return self; @@ -604,11 +604,12 @@ } -- (IBAction)saveColorScheme:(id)sender +- (IBAction)saveAsColorScheme:(id)sender { [[NSColorPanel sharedColorPanel] close]; + [enterNameAlertField setHidden:YES]; [enterNameLabel setStringValue:NSLocalizedString(@"Theme Name:", @"theme name label")]; [NSApp beginSheet:enterNameWindow @@ -616,7 +617,61 @@ modalDelegate:self didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo:@"saveTheme"]; + +} + +- (IBAction)duplicateTheme:(id)sender +{ + if([editThemeListTable numberOfSelectedRows] != 1) return; + + NSString *selectedPath = [NSString stringWithFormat:@"%@/%@_copy.%@", themePath, [editThemeListItems objectAtIndex:[editThemeListTable selectedRow]], SPColorThemeFileExtension]; + + NSFileManager *fm = [NSFileManager defaultManager]; + if(![fm fileExistsAtPath:selectedPath isDirectory:nil]) { + if([fm copyItemAtPath:[NSString stringWithFormat:@"%@/%@.%@", themePath, [editThemeListItems objectAtIndex:[editThemeListTable selectedRow]], SPColorThemeFileExtension] toPath:selectedPath error:nil]) { + + if(editThemeListItems) [editThemeListItems release], editThemeListItems = nil; + editThemeListItems = [[NSArray arrayWithArray:[self getAvailableThemes]] retain]; + [editThemeListTable reloadData]; + [self updateDisplayColorThemeName]; + [self updateColorSchemeSelectionMenu]; + return; + + } + } + + NSBeep(); + [editThemeListTable reloadData]; + +} + +- (IBAction)removeTheme:(id)sender +{ + if([editThemeListTable numberOfSelectedRows] != 1) return; + NSString *selectedPath = [NSString stringWithFormat:@"%@/%@.%@", themePath, [editThemeListItems objectAtIndex:[editThemeListTable selectedRow]], SPColorThemeFileExtension]; + NSFileManager *fm = [NSFileManager defaultManager]; + if([fm fileExistsAtPath:selectedPath isDirectory:nil]) { + if([fm removeItemAtPath:selectedPath error:nil]) { + + // Refresh current color theme setting name + if([[[prefs objectForKey:SPCustomQueryEditorThemeName] lowercaseString] isEqualToString:[[editThemeListItems objectAtIndex:[editThemeListTable selectedRow]] lowercaseString]]) { + [prefs setObject:@"User-defined" forKey:SPCustomQueryEditorThemeName]; + } + + if(editThemeListItems) [editThemeListItems release], editThemeListItems = nil; + editThemeListItems = [[NSArray arrayWithArray:[self getAvailableThemes]] retain]; + [editThemeListTable reloadData]; + [self updateDisplayColorThemeName]; + [self updateColorSchemeSelectionMenu]; + return; + + } + } + + NSBeep(); + [editThemeListTable reloadData]; + } - (IBAction)closePanelSheet:(id)sender @@ -738,6 +793,8 @@ { if(aTableView == colorSettingTableView) return [editorColors count]; + else if(aTableView == editThemeListTable) + return [editThemeListItems count]; return [[favoritesController arrangedObjects] count]; } @@ -752,6 +809,8 @@ return [editorNameForColors objectAtIndex:rowIndex]; else return [NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:[editorColors objectAtIndex:rowIndex]]]; + } else if(tableView == editThemeListTable) { + return [editThemeListItems objectAtIndex:rowIndex]; } else { if ([[tableColumn identifier] isEqualToString:@"default"] && (rowIndex == [prefs integerForKey:SPDefaultFavorite])) { return [NSImage imageNamed:@"blue-tick"]; @@ -763,6 +822,51 @@ return nil; } +- (void)tableView:(NSTableView *)tableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex +{ + if(tableView == editThemeListTable) { + + // Theme name editing + NSString *newName = (NSString*)anObject; + + // Check for non-valid names + if(![newName length] || [[newName lowercaseString] isEqualToString:@"default"] || [[newName lowercaseString] isEqualToString:@"user-defined"]) { + NSBeep(); + [editThemeListTable reloadData]; + return; + } + + // Check if new name already exists + for(NSString* item in editThemeListItems) { + if([[item lowercaseString] isEqualToString:newName]) { + NSBeep(); + [editThemeListTable reloadData]; + return; + } + } + + // Rename theme file + NSFileManager *fm = [NSFileManager defaultManager]; + if(![fm moveItemAtPath:[NSString stringWithFormat:@"%@/%@.%@", themePath, [editThemeListItems objectAtIndex:rowIndex], SPColorThemeFileExtension] toPath:[NSString stringWithFormat:@"%@/%@.%@", themePath, newName, SPColorThemeFileExtension] error:nil]) { + NSBeep(); + [editThemeListTable reloadData]; + return; + } + + // Refresh current color theme setting name + if([[[prefs objectForKey:SPCustomQueryEditorThemeName] lowercaseString] isEqualToString:[[editThemeListItems objectAtIndex:rowIndex] lowercaseString]]) { + [prefs setObject:newName forKey:SPCustomQueryEditorThemeName]; + } + + // Reload everything needed + if(editThemeListItems) [editThemeListItems release], editThemeListItems = nil; + editThemeListItems = [[NSArray arrayWithArray:[self getAvailableThemes]] retain]; + [editThemeListTable reloadData]; + [self updateDisplayColorThemeName]; + [self updateColorSchemeSelectionMenu]; + + } +} #pragma mark - #pragma mark TableView drag & drop delegate methods @@ -1094,14 +1198,15 @@ if(![name length] || [name isEqualToString:@"default"] || [name isEqualToString:@"user-defined"]) { [themeNameSaveButton setEnabled:NO]; } else { - BOOL enable = YES; + BOOL hide = YES; for(NSString* item in [self getAvailableThemes]) { if([[item lowercaseString] isEqualToString:name]) { - enable = NO; + hide = NO; break; } } - [themeNameSaveButton setEnabled:enable]; + [enterNameAlertField setHidden:hide]; + [themeNameSaveButton setEnabled:YES]; } return; @@ -1383,14 +1488,18 @@ - (void)editThemeList { - NSAlert *alert = [NSAlert alertWithMessageText:@"Not yet implemented. Please be patient." - defaultButton:NSLocalizedString(@"OK", @"OK button") - alternateButton:nil - otherButton:nil - informativeTextWithFormat:@""]; + [[NSColorPanel sharedColorPanel] close]; + + if(editThemeListItems) [editThemeListItems release], editThemeListItems = nil; + editThemeListItems = [[NSArray arrayWithArray:[self getAvailableThemes]] retain]; + [editThemeListTable reloadData]; + + [NSApp beginSheet:editThemeListWindow + modalForWindow:[self window] + modalDelegate:self + didEndSelector:nil + contextInfo:nil]; - [alert setAlertStyle:NSCriticalAlertStyle]; - [alert runModal]; } - (NSArray *)getAvailableThemes @@ -1941,6 +2050,7 @@ - (void)dealloc { if(themePath) [themePath release], themePath = nil; + if(editThemeListItems) [editThemeListItems release], editThemeListItems = nil; if(editorColors) [editorColors release], editorColors = nil; if(editorNameForColors) [editorNameForColors release], editorNameForColors = nil; if (keychain) [keychain release], keychain = nil; -- cgit v1.2.3