aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPChooseMenuItemDialog.m
diff options
context:
space:
mode:
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