123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- namespace PrimitivesSample
- {
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main (string[] args)
- {
- MonoMac.AppKit.NSApplication.Init ();
-
- using (var p = new MonoMac.Foundation.NSAutoreleasePool ()) {
- MonoMac.AppKit.NSApplication.SharedApplication.Delegate = new AppDelegate ();
- MonoMac.AppKit.NSApplication.Main (args);
- }
- }
-
- class AppDelegate : MonoMac.AppKit.NSApplicationDelegate
- {
- PrimitivesSampleGame game;
- public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
- {
- game = new PrimitivesSampleGame();
- game.Run();
- }
-
- public override bool ApplicationShouldTerminateAfterLastWindowClosed (MonoMac.AppKit.NSApplication sender)
- {
- return true;
- }
- }
- }
- }
|