2 using System.Collections.Generic;
5 using MonoMac.Foundation;
7 namespace SuperPolarity
12 /// The main entry point for the application.
14 static void Main (string[] args)
16 NSApplication.Init ();
18 using (var p = new NSAutoreleasePool ()) {
19 NSApplication.SharedApplication.Delegate = new AppDelegate ();
20 NSApplication.Main (args);
27 class AppDelegate : NSApplicationDelegate
29 SuperPolarity superPolarity;
31 public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
33 superPolarity = new SuperPolarity();
37 public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)