diff options
| author | Ben Beltran <ben@nsovocal.com> | 2018-06-26 17:05:22 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2018-06-26 17:05:22 -0500 |
| commit | 8ae8ea0d77ec654dd693b3912562b07a2b539b0f (patch) | |
| tree | b11ab323cc232871889853d9ab24e246fba4b516 /SuperPolarityMac/Program.cs | |
| parent | 9ad526c0233134a928cb5889dccb94458fc6dfd0 (diff) | |
Update project to work on VS Code mac
Diffstat (limited to 'SuperPolarityMac/Program.cs')
| -rw-r--r-- | SuperPolarityMac/Program.cs | 17 |
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; } } } |