X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/9ad526c0233134a928cb5889dccb94458fc6dfd0..8ae8ea0d77ec654dd693b3912562b07a2b539b0f:/SuperPolarityMac/Program.cs 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 { /// @@ -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; } } }