using System; using System.Collections.Generic; using System.Linq; using MonoMac.AppKit; using MonoMac.Foundation; namespace SuperPolarity { 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 override void FinishedLaunching (MonoMac.Foundation.NSObject notification) { superPolarity = new SuperPolarity(); superPolarity.Run (); } public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender) { return true; } } }