aboutsummaryrefslogtreecommitdiff
path: root/SuperPolarityMac/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SuperPolarityMac/Program.cs')
-rw-r--r--SuperPolarityMac/Program.cs17
1 files changed, 9 insertions, 8 deletions
diff --git a/SuperPolarityMac/Program.cs b/SuperPolarityMac/Program.cs
index e6ab5cf..5c7bbbc 100644
--- a/SuperPolarityMac/Program.cs
+++ b/SuperPolarityMac/Program.cs
@@ -1,11 +1,9 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using MonoMac.AppKit;
-using MonoMac.Foundation;
+using AppKit;
+using Foundation;
namespace SuperPolarity
{
+ [Register ("AppDelegate")]
static class Program
{
/// <summary>
@@ -28,15 +26,18 @@ namespace SuperPolarity
{
SuperPolarity superPolarity;
- public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
+ public AppDelegate ()
+ {
+ }
+
+ public override void DidFinishLaunching (NSNotification notification)
{
superPolarity = new SuperPolarity();
superPolarity.Run ();
}
- public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
+ public override void WillTerminate (NSNotification notification)
{
- return true;
}
}
}