Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2012-03-14 20:08:43 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-03-14 20:09:35 +0400
commit28970c96b98b3797fa9a400952b4ad52d6b7bf56 (patch)
treec9439e08647491cce678df596bddcd1f9fae621a /AppleDocWizard
parentb23bca5befbacf1ab1becd2cc259e083dfa165b7 (diff)
[AppleDocWizard] Make the application and its window come in front when launched
Diffstat (limited to 'AppleDocWizard')
-rw-r--r--AppleDocWizard/AppleDocWizardDelegate.cs6
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);
}
}