aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPChooseMenuItemDialog.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2013-01-24 21:10:57 +0000
committerstuconnolly <stuart02@gmail.com>2013-01-24 21:10:57 +0000
commit7342e8cb80a945b258aa4d52d0d74fe4f1690ae4 (patch)
tree5894d54b7899fa582d4064f4a9df47687f92949c /Source/SPChooseMenuItemDialog.m
parentceb7ac070de284fea209962bf7352bffc1788218 (diff)
downloadsequelpro-7342e8cb80a945b258aa4d52d0d74fe4f1690ae4.tar.gz
sequelpro-7342e8cb80a945b258aa4d52d0d74fe4f1690ae4.tar.bz2
sequelpro-7342e8cb80a945b258aa4d52d0d74fe4f1690ae4.zip
Fix more warnings.
Diffstat (limited to 'Source/SPChooseMenuItemDialog.m')
-rw-r--r--Source/SPChooseMenuItemDialog.m31
1 files changed, 15 insertions, 16 deletions
diff --git a/Source/SPChooseMenuItemDialog.m b/Source/SPChooseMenuItemDialog.m
index dc9ba92a..a4bb12bb 100644
--- a/Source/SPChooseMenuItemDialog.m
+++ b/Source/SPChooseMenuItemDialog.m
@@ -39,16 +39,10 @@
@end
@implementation SPChooseMenuItemDialogTextView
-{
-}
- (id)init;
{
- if ((self = [super initWithFrame:NSMakeRect(1, 1, 2, 2)]))
- {
- }
-
- return self;
+ return [super initWithFrame:NSMakeRect(1, 1, 2, 2)];
}
- (IBAction)menuItemHandler:(id)sender
@@ -72,21 +66,18 @@
- (id)init;
{
- if((self = [super initWithContentRect:NSMakeRect(1,1,2,2)
- styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]))
+ if ((self = [super initWithContentRect:NSMakeRect(1,1,2,2)
+ styleMask:NSBorderlessWindowMask
+ backing:NSBackingStoreBuffered
+ defer:NO]))
{
waitForChoice = YES;
selectedItemIndex = -1;
}
+
return self;
}
-- (void)dealloc
-{
- [dummyTextView release];
- [super dealloc];
-}
-
- (void)initDialog
{
[self setReleasedWhenClosed:YES];
@@ -100,7 +91,6 @@
[dummyTextView setDelegate:self];
[self setContentView:dummyTextView];
-
}
+ (NSInteger)withItems:(NSArray*)theList atPosition:(NSPoint)location
@@ -170,4 +160,13 @@
return [dialog selectedItemIndex];
}
+#pragma mark -
+
+- (void)dealloc
+{
+ [dummyTextView release];
+
+ [super dealloc];
+}
+
@end