adium 4621:f9c6c7e85abb: Forgot to refactor this part calling ES...

commits at adium.im commits at adium.im
Sun Jan 29 22:38:31 UTC 2012


details:	http://hg.adium.im/adium/rev/f9c6c7e85abb
revision:	4621:f9c6c7e85abb
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Sun Jan 29 23:38:19 2012 +0100

Forgot to refactor this part calling ESPresetNameSheetController.

diffs (42 lines):

diff -r aafc1929ef2a -r f9c6c7e85abb Source/AIAppearancePreferences.m
--- a/Source/AIAppearancePreferences.m	Mon Jan 30 00:19:49 2012 +0200
+++ b/Source/AIAppearancePreferences.m	Sun Jan 29 23:38:19 2012 +0100
@@ -492,13 +492,14 @@
  */
 - (IBAction)createListTheme:(id)sender
 {
-	NSString *theme = [adium.preferenceController preferenceForKey:KEY_LIST_THEME_NAME group:PREF_GROUP_APPEARANCE];	
+	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]
-													notifyingTarget:self
-														   userInfo:@"theme"];
+	ESPresetNameSheetController *presetNameSheetController = [[ESPresetNameSheetController alloc] initWithDefaultName:[[theme stringByAppendingString:@" "] stringByAppendingString:AILocalizedString(@"(Copy)", nil)]
+																									  explanatoryText:AILocalizedString(@"Enter a unique name for this new theme.",nil)
+																									  notifyingTarget:self
+																											 userInfo:@"theme"];
+	
+	[presetNameSheetController showOnWindow:[[self view] window]];
 }
 
 /*!
@@ -567,11 +568,12 @@
 {
 	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]
-													notifyingTarget:self
-														   userInfo:@"layout"];
+	ESPresetNameSheetController *presetNameSheetController = [[ESPresetNameSheetController alloc] initWithDefaultName:[[layout stringByAppendingString:@" "] stringByAppendingString:AILocalizedString(@"(Copy)",nil)]
+																									  explanatoryText:AILocalizedString(@"Enter a unique name for this new layout.",nil)
+																									  notifyingTarget:self
+																											 userInfo:@"layout"];
+	
+	[presetNameSheetController showOnWindow:[[self view] window]];
 }
 
 /*!




More information about the commits mailing list