using AppKit; using Foundation; namespace SuperPolarity { [Register ("AppDelegate")] static class Program { /// /// The main entry point for the application. /// static void Main (string[] args) { NSApplication.Init (); using (var p = new NSAutoreleasePool ()) { NSApplication.SharedApplication.Delegate = new AppDelegate (); NSApplication.Main (args); } } } class AppDelegate : NSApplicationDelegate { SuperPolarity superPolarity; public AppDelegate () { } public override void DidFinishLaunching (NSNotification notification) { superPolarity = new SuperPolarity(); superPolarity.Run (); } public override void WillTerminate (NSNotification notification) { } } }