--- a/Source/ESContactListAdvancedPreferences.m Wed Feb 08 13:36:45 2012 +0200
+++ b/Source/ESContactListAdvancedPreferences.m Fri Feb 10 01:03:12 2012 -0500
@@ -316,11 +316,12 @@
NSString *theme = [adium.preferenceController preferenceForKey:KEY_LIST_THEME_NAME group:PREF_GROUP_APPEARANCE];
- [ESPresetNameSheetController showPresetNameSheetWithDefaultName:[[theme stringByAppendingString:@" "] stringByAppendingString:AILocalizedString(@"(Copy)", nil)]
- explanatoryText:AILocalizedString(@"Enter a unique name for this new theme.",nil)
- onWindow:[[self view] window]
+ ESPresetNameSheetController *presetNameSheetController = [[ESPresetNameSheetController alloc] initWithDefaultName:[[theme stringByAppendingString:@" "] stringByAppendingString:AILocalizedString(@"(Copy)", nil)] + explanatoryText:AILocalizedString(@"Enter a unique name for this new theme.",nil) + [presetNameSheetController showOnWindow:[[self view] window]]; @@ -330,9 +331,9 @@
NSString *theme = [adium.preferenceController preferenceForKey:KEY_LIST_THEME_NAME group:PREF_GROUP_APPEARANCE];
- [AIListThemeWindowController editListThemeWithName:theme
- onWindow:[[self view] window]
+ AIListThemeWindowController *listThemeWindowController = [[AIListThemeWindowController alloc] initWithName:theme + [listThemeWindowController showOnWindow:[[self view] window]]; @@ -373,10 +374,10 @@
- (void)manageListThemes:(id)sender
_listThemes = [self availableThemeSets];
- [ESPresetManagementController managePresets:_listThemes
- onWindow:[[self view] window]
+ ESPresetManagementController *presetManagementController = [[ESPresetManagementController alloc] initWithPresets:_listThemes + [presetManagementController showOnWindow:[[self view] window]]; [popUp_colorTheme selectItemWithRepresentedObject:[adium.preferenceController preferenceForKey:KEY_LIST_THEME_NAME
group:PREF_GROUP_APPEARANCE]];
@@ -389,11 +390,11 @@
NSString *layout = [adium.preferenceController preferenceForKey:KEY_LIST_LAYOUT_NAME group:PREF_GROUP_APPEARANCE];
- [ESPresetNameSheetController showPresetNameSheetWithDefaultName:[[layout stringByAppendingString:@" "] stringByAppendingString:AILocalizedString(@"(Copy)",nil)]
- explanatoryText:AILocalizedString(@"Enter a unique name for this new layout.",nil)
- onWindow:[[self view] window]
+ ESPresetNameSheetController *presetNameSheetController = [[ESPresetNameSheetController alloc] initWithDefaultName:[[layout stringByAppendingString:@" "] stringByAppendingString:AILocalizedString(@"(Copy)",nil)] + explanatoryText:AILocalizedString(@"Enter a unique name for this new layout.",nil) + [presetNameSheetController showOnWindow:[[self view] window]]; @@ -403,9 +404,9 @@
NSString *theme = [adium.preferenceController preferenceForKey:KEY_LIST_LAYOUT_NAME group:PREF_GROUP_APPEARANCE];
- [AIListLayoutWindowController editListLayoutWithName:theme
- onWindow:[[self view] window]
+ AIListLayoutWindowController *listLayoutWindowController = [[AIListLayoutWindowController alloc] initWithName:theme + [listLayoutWindowController showOnWindow:[[self view] window]]; @@ -446,10 +447,10 @@
- (void)manageListLayouts:(id)sender
_listLayouts = [self availableLayoutSets];
- [ESPresetManagementController managePresets:_listLayouts
- onWindow:[[self view] window]
+ ESPresetManagementController *presetManagementController = [[ESPresetManagementController alloc] initWithPresets:_listLayouts + [presetManagementController showOnWindow:[[self view] window]]; [popUp_listLayout selectItemWithRepresentedObject:[adium.preferenceController preferenceForKey:KEY_LIST_LAYOUT_NAME
group:PREF_GROUP_APPEARANCE]];
@@ -508,14 +509,14 @@
- (void)_editListThemeWithName:(NSString *)name{
- [AIListThemeWindowController editListThemeWithName:name
- onWindow:[[self view] window]
+ AIListThemeWindowController *listThemeWindowController = [[AIListThemeWindowController alloc] initWithName:name + [listThemeWindowController showOnWindow:[[self view] window]]; - (void)_editListLayoutWithName:(NSString *)name{
- [AIListLayoutWindowController editListLayoutWithName:name
- onWindow:[[self view] window]
+ AIListLayoutWindowController *listLayoutWindowController = [[AIListLayoutWindowController alloc] initWithName:name + [listLayoutWindowController showOnWindow:[[self view] window]];