#if MONOMAC using MonoMac.AppKit; using MonoMac.Foundation; #endif namespace Particle3DSample { static class Program { /// /// The main entry point for the application. /// static void Main (string[] args) { #if MONOMAC NSApplication.Init (); using (var p = new NSAutoreleasePool ()) { NSApplication.SharedApplication.Delegate = new AppDelegate (); NSApplication.Main (args); } #else using (var game = new Particle3DSampleGame()) { game.Run(); } #endif } } #if MONOMAC class AppDelegate : NSApplicationDelegate { Particle3DSampleGame game; public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) { game = new Particle3DSampleGame(); game.Run(); } public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender) { return true; } } #endif }