diff options
author | Jeremie Laval <jeremie.laval@gmail.com> | 2012-03-14 20:08:43 +0400 |
---|---|---|
committer | Jeremie Laval <jeremie.laval@gmail.com> | 2012-03-14 20:09:35 +0400 |
commit | 28970c96b98b3797fa9a400952b4ad52d6b7bf56 (patch) | |
tree | c9439e08647491cce678df596bddcd1f9fae621a /AppleDocWizard/AppleDocWizardDelegate.cs | |
parent | b23bca5befbacf1ab1becd2cc259e083dfa165b7 (diff) |
[AppleDocWizard] Make the application and its window come in front when launched
Diffstat (limited to 'AppleDocWizard/AppleDocWizardDelegate.cs')
-rw-r--r-- | AppleDocWizard/AppleDocWizardDelegate.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/AppleDocWizard/AppleDocWizardDelegate.cs b/AppleDocWizard/AppleDocWizardDelegate.cs index e650548..95bd6b5 100644 --- a/AppleDocWizard/AppleDocWizardDelegate.cs +++ b/AppleDocWizard/AppleDocWizardDelegate.cs @@ -15,8 +15,12 @@ namespace macdoc public override void DidFinishLaunching (MonoMac.Foundation.NSNotification notification) { wizard = new AppleDocWizardController (); + NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); + wizard.Window.MakeMainWindow (); + wizard.Window.MakeKeyWindow (); + wizard.Window.MakeKeyAndOrderFront (this); wizard.Window.Center (); - NSApplication.SharedApplication.ArrangeInFront (this); + wizard.VerifyFreshnessAndLaunchDocProcess (); NSApplication.SharedApplication.RunModalForWindow (wizard.Window); } } |