#region File Description //----------------------------------------------------------------------------- // PeerToPeerGame.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion #region Using Statements using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Net; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; #endregion namespace PeerToPeer { #region Entry Point static class Program { /// /// The main entry point for the application. /// static void Main (string[] args) { NSApplication.Init (); using (var p = new NSAutoreleasePool ()) { NSApplication.SharedApplication.Delegate = new AppDelegate(); NSApplication.Main(args); } } } class AppDelegate : NSApplicationDelegate { public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) { using (PeerToPeerGame game = new PeerToPeerGame ()) { game.Run (); } } public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender) { return true; } } #endregion }