adium 4606:63cb186eda09: Refactor and annotate AdiumSetupWizard ...

commits at adium.im commits at adium.im
Sun Jan 29 17:24:54 UTC 2012


details:	http://hg.adium.im/adium/rev/63cb186eda09
revision:	4606:63cb186eda09
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Sun Jan 29 18:24:44 2012 +0100

Refactor and annotate AdiumSetupWizard to be acceptable to the static analyzer.

diffs (28 lines):

diff -r e0d22ede4de7 -r 63cb186eda09 Source/AdiumSetupWizard.m
--- a/Source/AdiumSetupWizard.m	Sun Jan 29 18:21:54 2012 +0100
+++ b/Source/AdiumSetupWizard.m	Sun Jan 29 18:24:44 2012 +0100
@@ -39,6 +39,7 @@
 
 @interface AdiumSetupWizard ()
 - (void)multipleImportAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
+- (void)show __attribute__((ns_consumes_self));
 @end
 
 /*!
@@ -56,9 +57,14 @@
 	
 	setupWizardWindowController = [[self alloc] initWithWindowNibName:@"SetupWizard"];
 	
+	[setupWizardWindowController show];
+}
+
+- (void)show
+{
 	//Configure and show window
-	[setupWizardWindowController showWindow:nil];
-	[[setupWizardWindowController window] orderFront:nil];
+	[self showWindow:nil];
+	[[self window] orderFront:nil];
 }
 
 /*!




More information about the commits mailing list