]> git.r.bdr.sh - rbdr/super-polarity/blob - SuperPolarityMac/Program.cs
5c7bbbcfd1a46782d155f7aec167d9c8813adf0b
[rbdr/super-polarity] / SuperPolarityMac / Program.cs
1 using AppKit;
2 using Foundation;
3
4 namespace SuperPolarity
5 {
6 [Register ("AppDelegate")]
7 static class Program
8 {
9 /// <summary>
10 /// The main entry point for the application.
11 /// </summary>
12 static void Main (string[] args)
13 {
14 NSApplication.Init ();
15
16 using (var p = new NSAutoreleasePool ()) {
17 NSApplication.SharedApplication.Delegate = new AppDelegate ();
18 NSApplication.Main (args);
19 }
20
21
22 }
23 }
24
25 class AppDelegate : NSApplicationDelegate
26 {
27 SuperPolarity superPolarity;
28
29 public AppDelegate ()
30 {
31 }
32
33 public override void DidFinishLaunching (NSNotification notification)
34 {
35 superPolarity = new SuperPolarity();
36 superPolarity.Run ();
37 }
38
39 public override void WillTerminate (NSNotification notification)
40 {
41 }
42 }
43 }
44
45