forked from pilotmoon/Scroll-Reverser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WelcomeWindowController.m
31 lines (25 loc) · 805 Bytes
/
WelcomeWindowController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// This file is part of Scroll Reverser <https://pilotmoon.com/scrollreverser/>
// Licensed under Apache License v2.0 <http://www.apache.org/licenses/LICENSE-2.0>
#import "WelcomeWindowController.h"
@implementation WelcomeWindowController
- (void)showWindow:(id)sender
{
[NSApp activateIgnoringOtherApps:YES];
[[self window] setLevel:NSFloatingWindowLevel];
[[self window] center];
[super showWindow:sender];
}
- (IBAction)closeWelcomeWindow:(id)sender
{
[self close];
}
- (NSString *)menuStringWelcomeText {
return NSLocalizedString(@"Scroll Reverser is now running!", nil);
}
- (NSString *)menuStringWelcomeIconHelp {
return NSLocalizedString(@"For settings, click the icon in the menu bar", nil);
}
- (NSString *)menuStringOK {
return NSLocalizedString(@"OK", nil);
}
@end