]> git.r.bdr.sh - rbdr/super-polarity/blobdiff - SuperPolarityMac/Program.cs
Update project to work on VS Code mac
[rbdr/super-polarity] / SuperPolarityMac / Program.cs
index e6ab5cfcff83cbcb2c0c837749b0a4bbd918c271..5c7bbbcfd1a46782d155f7aec167d9c8813adf0b 100644 (file)
@@ -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;
                }
        }
 }