]> git.r.bdr.sh - rbdr/super-polarity/blame - SuperPolarityMac/Program.cs
Update README
[rbdr/super-polarity] / SuperPolarityMac / Program.cs
CommitLineData
8ae8ea0d
BB
1using AppKit;
2using Foundation;
63a61ee2
BB
3
4namespace SuperPolarity
5{
8ae8ea0d 6 [Register ("AppDelegate")]
63419029
BB
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
8ae8ea0d
BB
29 public AppDelegate ()
30 {
31 }
32
33 public override void DidFinishLaunching (NSNotification notification)
63419029
BB
34 {
35 superPolarity = new SuperPolarity();
36 superPolarity.Run ();
37 }
38
8ae8ea0d 39 public override void WillTerminate (NSNotification notification)
63419029 40 {
63419029
BB
41 }
42 }
63a61ee2 43}
63419029
BB
44
45