mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Moved activateIgnoringOtherApps: hack from [MMWindowController openWindow] to [MMAppController applicationDidFinishLaunching:].
git-svn-id: http://macvim.googlecode.com/svn/trunk@77 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
@@ -110,6 +110,15 @@ NSString *MMTerminateAfterLastWindowClosed = @"terminateafterlastwindowclosed";
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)notification
|
||||
{
|
||||
// HACK! The GUI does not get activated if Vim is launched by MMBackend in
|
||||
// checkin:. I have not been able to figure out any other way to get it to
|
||||
// activate other than forcing it here. A better solution for launching
|
||||
// the GUI would be good.
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
}
|
||||
|
||||
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
|
||||
{
|
||||
// NOTE! This way it possible to start the app with the command-line
|
||||
|
||||
@@ -203,12 +203,6 @@ NSMutableArray *buildMenuAddress(NSMenu *menu)
|
||||
[self updateResizeIncrements];
|
||||
[self resizeWindowToFit:self];
|
||||
|
||||
// HACK! The GUI does not get activated if Vim is launched by MMBackend in
|
||||
// checkin:. I have not been able to figure out any other way to get it to
|
||||
// activate other than forcing it here. A better solution for launching
|
||||
// the GUI would be good.
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
|
||||
[[self window] makeKeyAndOrderFront:self];
|
||||
|
||||
BOOL statusOff = [[NSUserDefaults standardUserDefaults]
|
||||
|
||||
Reference in New Issue
Block a user