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:
Bjorn Winckler
2007-08-04 17:39:45 +00:00
parent 6957942365
commit def350e3c8
2 changed files with 9 additions and 6 deletions
+9
View File
@@ -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
-6
View File
@@ -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]