X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/63419029fbda7d3f2f3d5984c3d2c77f341dbd79..refs/heads/main:/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; } } }