Browse Source

Mac/iOS compilation and run fixes.

Removed unnecessary using statements around games
created in ApplicationDidFinishLaunching. Game.Run
on Mac and iOS is non-blocking by default, so
Disposing these objects immediately after Run was
incorrect.

Added missing(?) Info.plist files to many of the
iOS sample projects
Christopher Chambers 13 years ago
parent
commit
68666c8629
44 changed files with 235 additions and 122 deletions
  1. 2 3
      Samples/MacOS/BackgroundThreadTester/Program.cs
  2. 3 4
      Samples/MacOS/BookSourceCode/XNAGameDevelopmentbyExampleCode/AsteroidBeltAssault/Program.cs
  3. 3 4
      Samples/MacOS/BookSourceCode/XNAGameDevelopmentbyExampleCode/FloodControl/Program.cs
  4. 3 4
      Samples/MacOS/BookSourceCode/XNAGameDevelopmentbyExampleCode/GemstoneHunter/Program.cs
  5. 1 1
      Samples/MacOS/BouncingBox/main.cs
  6. 3 3
      Samples/MacOS/ChaseAndEvade/Program.cs
  7. 3 4
      Samples/MacOS/Colored3DCube/Program.cs
  8. 2 2
      Samples/MacOS/Draw2D/main.cs
  9. 3 4
      Samples/MacOS/GameStateManagement/Game.cs
  10. 3 4
      Samples/MacOS/GooCursor/Program.cs
  11. 3 4
      Samples/MacOS/HoneycombRush/Program.cs
  12. 3 4
      Samples/MacOS/NetRumble/Program.cs
  13. 3 4
      Samples/MacOS/NetworkPrediction/Program.cs
  14. 3 4
      Samples/MacOS/Particle3DSample/Program.cs
  15. 3 5
      Samples/MacOS/RolePlayingGame/Program.cs
  16. 3 4
      Samples/MacOS/SpriteEffects/Program.cs
  17. 3 4
      Samples/MacOS/Tetris/Program.cs
  18. BIN
      Samples/MacOS/TexturedQuad/Program.cs
  19. 2 2
      Samples/MacOS/TiledSprites/main.cs
  20. 3 4
      Samples/MacOS/TransformedCollisionSample/Program.cs
  21. 3 4
      Samples/MacOS/UseCustomVertex/Program.cs
  22. 2 2
      Samples/MacOS/VideoPlayer/main.cs
  23. 2 4
      Samples/iOS/Aiming/Main.cs
  24. 25 0
      Samples/iOS/BouncingBox/Info.plist
  25. 2 4
      Samples/iOS/ChaseAndEvade/Main.cs
  26. 1 1
      Samples/iOS/GameComponents/Game1.cs
  27. 25 0
      Samples/iOS/GameComponents/Info.plist
  28. 1 1
      Samples/iOS/GameComponents/main.cs
  29. 25 0
      Samples/iOS/GameStateManagement/Info.plist
  30. 2 4
      Samples/iOS/GameStateManagement/Program.cs
  31. 2 3
      Samples/iOS/MonoGame.Samples.Primitives/Program.cs
  32. 25 0
      Samples/iOS/MultiTouch/Info.plist
  33. 2 4
      Samples/iOS/MultiTouch/Program.cs
  34. 2 4
      Samples/iOS/ParticleSample/Main.cs
  35. 2 3
      Samples/iOS/PerPixelCollision/Program.cs
  36. 2 3
      Samples/iOS/RectangleCollision/Program.cs
  37. 2 4
      Samples/iOS/RenderTarget2D/Main.cs
  38. 1 1
      Samples/iOS/RockRain/Game1.cs
  39. 25 0
      Samples/iOS/RockRain/Info.plist
  40. 2 4
      Samples/iOS/TouchGesture/Program.cs
  41. 2 3
      Samples/iOS/TransformedCollision/Program.cs
  42. 1 1
      Samples/iOS/VirtualGamePad/Game1.cs
  43. 25 0
      Samples/iOS/VirtualGamePad/Info.plist
  44. 2 4
      Samples/iOS/Waypoint/Main.cs

+ 2 - 3
Samples/MacOS/BackgroundThreadTester/Program.cs

@@ -24,9 +24,8 @@ namespace BackgroundThreadTester
 		
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{			
-			using (game = new Game1()) {
-				game.Run ();
-			}
+			game = new Game1();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/BookSourceCode/XNAGameDevelopmentbyExampleCode/AsteroidBeltAssault/Program.cs

@@ -39,12 +39,11 @@ namespace Asteroid_Belt_Assault
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		Game1 game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Game1 game = new Game1 ()) {
-				game.Run ();
-			}
+			game = new Game1();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/BookSourceCode/XNAGameDevelopmentbyExampleCode/FloodControl/Program.cs

@@ -39,12 +39,11 @@ namespace Flood_Control
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		Game1 game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Game1 game = new Game1 ()) {
-				game.Run ();
-			}
+			game = new Game1();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/BookSourceCode/XNAGameDevelopmentbyExampleCode/GemstoneHunter/Program.cs

@@ -39,12 +39,11 @@ namespace Gemstone_Hunter
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		Game1 game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Game1 game = new Game1 ()) {
-				game.Run ();
-			}
+			game = new Game1();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 1 - 1
Samples/MacOS/BouncingBox/main.cs

@@ -28,7 +28,7 @@ namespace Microsoft.Xna.Samples.BouncingBox
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
 			game = new Game1 ();
-			game.Run ();
+			game.Run();
 		}
 
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 3
Samples/MacOS/ChaseAndEvade/Program.cs

@@ -24,11 +24,11 @@ namespace ChaseAndEvade
 
 	class AppDelegate : NSApplicationDelegate
 	{
+        ChaseAndEvadeGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (ChaseAndEvadeGame game = new ChaseAndEvadeGame ()) {
-				game.Run ();
-			}
+			game = new ChaseAndEvadeGame();
+		    game.Run();
 		}
 
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/Colored3DCube/Program.cs

@@ -37,12 +37,11 @@ namespace Colored3DCube
 	
 	class AppDelegate : MonoMac.AppKit.NSApplicationDelegate
 	{
-		
+		Game1 game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Game1 game = new Game1()) {
-				game.Run ();
-			}
+			game = new Game1();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (MonoMac.AppKit.NSApplication sender)

+ 2 - 2
Samples/MacOS/Draw2D/main.cs

@@ -27,8 +27,8 @@ namespace Microsoft.Xna.Samples.Draw2D
 
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			game = new Game1 ();
-			game.Run ();
+			game = new Game1();
+			game.Run();
 		}
 
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/GameStateManagement/Game.cs

@@ -122,12 +122,11 @@ namespace GameStateManagement
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		GameStateManagementGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (GameStateManagementGame game = new GameStateManagementGame ()) {
-				game.Run ();
-			}
+			game = new GameStateManagementGame();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/GooCursor/Program.cs

@@ -28,12 +28,11 @@ namespace GooCursor
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		Game1 game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Game1 game = new Game1()) {
-				game.Run ();
-			}
+			game = new Game1();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/HoneycombRush/Program.cs

@@ -48,12 +48,11 @@ namespace HoneycombRush
 	
 	class AppDelegate : MonoMac.AppKit.NSApplicationDelegate
 	{
-		
+		HoneycombRush game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (HoneycombRush game = new HoneycombRush()){
-				game.Run();
-			}
+			game = new HoneycombRush();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (MonoMac.AppKit.NSApplication sender)

+ 3 - 4
Samples/MacOS/NetRumble/Program.cs

@@ -82,12 +82,11 @@ namespace NetRumble
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		NetRumbleGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (NetRumbleGame game = new NetRumbleGame ()) {
-				game.Run ();
-			}
+			game = new NetRumbleGame();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/NetworkPrediction/Program.cs

@@ -82,12 +82,11 @@ namespace NetworkPrediction
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		NetworkPredictionGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (NetworkPredictionGame game = new NetworkPredictionGame ()) {
-				game.Run ();
-			}
+			game = new NetworkPredictionGame();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/Particle3DSample/Program.cs

@@ -23,12 +23,11 @@ namespace Particle3DSample
 
 	class AppDelegate : NSApplicationDelegate
 	{
-
+        Particle3DSampleGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Particle3DSampleGame game = new Particle3DSampleGame ()) {
-				game.Run ();
-			}
+			game = new Particle3DSampleGame();
+			game.Run();
 		}
 
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 5
Samples/MacOS/RolePlayingGame/Program.cs

@@ -82,13 +82,11 @@ namespace RolePlaying
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		RolePlayingGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (RolePlayingGame game = new RolePlayingGame())
-			{
-				game.Run();
-			}
+			game = new RolePlayingGame();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/SpriteEffects/Program.cs

@@ -23,12 +23,11 @@ namespace SpriteEffects
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		SpriteEffectsGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (SpriteEffectsGame game = new SpriteEffectsGame ()) {
-				game.Run ();
-			}
+			game = new SpriteEffectsGame();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/Tetris/Program.cs

@@ -23,12 +23,11 @@ namespace Tetris
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		Engine game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Engine game = new Engine ()) {
-				game.Run ();
-			}
+			game = new Engine();
+		    game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

BIN
Samples/MacOS/TexturedQuad/Program.cs


+ 2 - 2
Samples/MacOS/TiledSprites/main.cs

@@ -22,8 +22,8 @@ namespace TiledSprites
 		
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			game = new TiledSpritesSample ();
-			game.Run ();
+			game = new TiledSpritesSample();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/TransformedCollisionSample/Program.cs

@@ -35,12 +35,11 @@ namespace TransformedCollision
 	
 	class AppDelegate : NSApplicationDelegate
 	{
-		
+		TransformedCollisionGame game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (TransformedCollisionGame game = new TransformedCollisionGame()) {
-				game.Run ();
-			}
+			game = new TransformedCollisionGame();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 3 - 4
Samples/MacOS/UseCustomVertex/Program.cs

@@ -46,12 +46,11 @@ namespace UseCustomVertexWindows
 	
 	class AppDelegate : MonoMac.AppKit.NSApplicationDelegate
 	{
-		
+		Game1 game;
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			using (Game1 game = new Game1()) {
-				game.Run ();
-			}
+			game = new Game1();
+			game.Run();
 		}
 		
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (MonoMac.AppKit.NSApplication sender)

+ 2 - 2
Samples/MacOS/VideoPlayer/main.cs

@@ -27,8 +27,8 @@ namespace MonoGame.Samples.VideoPlayer
 
 		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
 		{
-			game = new Game1 ();
-			game.Run ();
+			game = new Game1();
+			game.Run();
 		}
 
 		public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)

+ 2 - 4
Samples/iOS/Aiming/Main.cs

@@ -15,10 +15,8 @@ namespace Aiming
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (AimingGame game = new AimingGame())
-            {
-                game.Run();
-            }
+            AimingGame game = new AimingGame();
+            game.Run();
         }
 
         /// <summary>

+ 25 - 0
Samples/iOS/BouncingBox/Info.plist

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDisplayName</key>
+	<string>ChaseAndEvade</string>
+	<key>CFBundleIconFiles</key>
+	<array>
+		<string>monogameicon.png</string>
+	</array>
+	<key>CFBundleIdentifier</key>
+	<string>project.MonoGame.BouncingBox</string>
+	<key>MinimumOSVersion</key>
+	<string>3.1</string>
+	<key>UIDeviceFamily</key>
+	<array>
+		<integer>1</integer>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+	</array>
+</dict>
+</plist>

+ 2 - 4
Samples/iOS/ChaseAndEvade/Main.cs

@@ -15,10 +15,8 @@ namespace ChaseAndEvade
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (ChaseAndEvadeGame game = new ChaseAndEvadeGame())
-            {
-                game.Run();
-            }
+            ChaseAndEvadeGame game = new ChaseAndEvadeGame();
+            game.Run();
         }
 
         /// <summary>

+ 1 - 1
Samples/iOS/GameComponents/Game1.cs

@@ -83,7 +83,7 @@ namespace Microsoft.Xna.Samples.GameComponents
 			if ((Mouse.GetState().X != 0) || (Mouse.GetState().Y != 0))
 			{
 				AddSprite();
-				Mouse.SetPosition(0,0);
+				//Mouse.SetPosition(0,0);
 			}
             base.Update(gameTime);
         }

+ 25 - 0
Samples/iOS/GameComponents/Info.plist

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDisplayName</key>
+	<string>ChaseAndEvade</string>
+	<key>CFBundleIconFiles</key>
+	<array>
+		<string>monogameicon.png</string>
+	</array>
+	<key>CFBundleIdentifier</key>
+	<string>project.MonoGame.GameComponents</string>
+	<key>MinimumOSVersion</key>
+	<string>3.1</string>
+	<key>UIDeviceFamily</key>
+	<array>
+		<integer>1</integer>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+	</array>
+</dict>
+</plist>

+ 1 - 1
Samples/iOS/GameComponents/main.cs

@@ -16,7 +16,7 @@ namespace Microsoft.Xna.Samples.GameComponents
 		{
 			// Fun begins..
 			game = new Game1();
-			game.Run();			
+			game.Run();
 		}
 		
 		static void Main (string [] args)

+ 25 - 0
Samples/iOS/GameStateManagement/Info.plist

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDisplayName</key>
+	<string>ChaseAndEvade</string>
+	<key>CFBundleIconFiles</key>
+	<array>
+		<string>GameThumbnail.png</string>
+	</array>
+	<key>CFBundleIdentifier</key>
+	<string>project.MonoGame.GameStateManagement</string>
+	<key>MinimumOSVersion</key>
+	<string>3.1</string>
+	<key>UIDeviceFamily</key>
+	<array>
+		<integer>1</integer>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+	</array>
+</dict>
+</plist>

+ 2 - 4
Samples/iOS/GameStateManagement/Program.cs

@@ -19,10 +19,8 @@ namespace Microsoft.Xna.Samples.GameStateManagement
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (GameStateManagementGame game = new GameStateManagementGame())
-            {
-                game.Run();
-            }
+            GameStateManagementGame game = new GameStateManagementGame();
+            game.Run();
         }
 
         /// <summary>

+ 2 - 3
Samples/iOS/MonoGame.Samples.Primitives/Program.cs

@@ -12,9 +12,8 @@ namespace PrimitivesSample
 		public override void FinishedLaunching (UIApplication app)
 		{
 			// Fun begins..
-			using (PrimitivesSampleGame game = new PrimitivesSampleGame()) {
-				game.Run ();
-			}
+			PrimitivesSampleGame game = new PrimitivesSampleGame();
+			game.Run ();
 		}
 
 		static void Main (string [] args)

+ 25 - 0
Samples/iOS/MultiTouch/Info.plist

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDisplayName</key>
+	<string>ChaseAndEvade</string>
+	<key>CFBundleIconFiles</key>
+	<array>
+		<string>GameThumbnail.png</string>
+	</array>
+	<key>CFBundleIdentifier</key>
+	<string>project.MonoGame.MultiTouch</string>
+	<key>MinimumOSVersion</key>
+	<string>3.1</string>
+	<key>UIDeviceFamily</key>
+	<array>
+		<integer>1</integer>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+	</array>
+</dict>
+</plist>

+ 2 - 4
Samples/iOS/MultiTouch/Program.cs

@@ -14,10 +14,8 @@ namespace Microsoft.Xna.Samples.MultiTouch
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (Game1 game = new Game1())
-            {
-                game.Run();
-            }
+            Game1 game = new Game1();
+            game.Run();
         }
 
         /// <summary>

+ 2 - 4
Samples/iOS/ParticleSample/Main.cs

@@ -15,10 +15,8 @@ namespace ParticleSample
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (ParticleSampleGame game = new ParticleSampleGame())
-            {
-                game.Run();
-            }
+            ParticleSampleGame game = new ParticleSampleGame();
+            game.Run();
         }
 
         /// <summary>

+ 2 - 3
Samples/iOS/PerPixelCollision/Program.cs

@@ -12,9 +12,8 @@ namespace PerPixelCollision
 		public override void FinishedLaunching (UIApplication app)
 		{
 			// Fun begins..
-			using (PerPixelCollisionGame game = new PerPixelCollisionGame()) {
-				game.Run ();
-			}
+			PerPixelCollisionGame game = new PerPixelCollisionGame();
+			game.Run ();
 		}
 
 		static void Main (string [] args)

+ 2 - 3
Samples/iOS/RectangleCollision/Program.cs

@@ -12,9 +12,8 @@ namespace RectangleCollision
 		public override void FinishedLaunching (UIApplication app)
 		{
 			// Fun begins..
-			using (RectangleCollisionGame game = new RectangleCollisionGame()) {
-				game.Run ();
-			}
+			RectangleCollisionGame game = new RectangleCollisionGame();
+			game.Run();
 		}
 
 		static void Main (string [] args)

+ 2 - 4
Samples/iOS/RenderTarget2D/Main.cs

@@ -13,10 +13,8 @@ namespace RenderTarget2DSample
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (Game1 game = new Game1())
-            {
-                game.Run();
-            }
+            Game1 game = new Game1();
+            game.Run();
         }
 
         /// <summary>

+ 1 - 1
Samples/iOS/RockRain/Game1.cs

@@ -209,7 +209,7 @@ namespace RockRainIphone
         {
             if (startScene.MenuSelected)
             {
-				Mouse.SetPosition(0,0);
+				//Mouse.SetPosition(0,0);
                 audio.MenuSelect.Play();
                 switch (startScene.SelectedMenuIndex)
                 {

+ 25 - 0
Samples/iOS/RockRain/Info.plist

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDisplayName</key>
+	<string>ChaseAndEvade</string>
+	<key>CFBundleIconFiles</key>
+	<array>
+		<string>GameThumbnail.png</string>
+	</array>
+	<key>CFBundleIdentifier</key>
+	<string>project.MonoGame.RockRain</string>
+	<key>MinimumOSVersion</key>
+	<string>3.1</string>
+	<key>UIDeviceFamily</key>
+	<array>
+		<integer>1</integer>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+	</array>
+</dict>
+</plist>

+ 2 - 4
Samples/iOS/TouchGesture/Program.cs

@@ -23,10 +23,8 @@ namespace TouchGestureSample
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (Game1 game = new Game1())
-            {
-                game.Run();
-            }
+            Game1 game = new Game1();
+            game.Run();
         }
 
         /// <summary>

+ 2 - 3
Samples/iOS/TransformedCollision/Program.cs

@@ -12,9 +12,8 @@ namespace TransformedCollision
 		public override void FinishedLaunching (UIApplication app)
 		{
 			// Fun begins..
-			using (TransformedCollisionGame game = new TransformedCollisionGame()) {
-				game.Run ();
-			}
+			TransformedCollisionGame game = new TransformedCollisionGame();
+			game.Run ();
 		}
 
 		static void Main (string [] args)

+ 1 - 1
Samples/iOS/VirtualGamePad/Game1.cs

@@ -42,7 +42,7 @@ namespace Microsoft.Xna.Samples.VirtualGamePad
             // TODO: Add your initialization logic here
 
 			// Set the initial mouse position
-			Mouse.SetPosition(160,240);
+			//Mouse.SetPosition(160,240);
 			
             base.Initialize();
         }

+ 25 - 0
Samples/iOS/VirtualGamePad/Info.plist

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDisplayName</key>
+	<string>ChaseAndEvade</string>
+	<key>CFBundleIconFiles</key>
+	<array>
+		<string>monogameicon.png</string>
+	</array>
+	<key>CFBundleIdentifier</key>
+	<string>project.MonoGame.VirtualGamePad</string>
+	<key>MinimumOSVersion</key>
+	<string>3.1</string>
+	<key>UIDeviceFamily</key>
+	<array>
+		<integer>1</integer>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+	</array>
+</dict>
+</plist>

+ 2 - 4
Samples/iOS/Waypoint/Main.cs

@@ -15,10 +15,8 @@ namespace Waypoint
         public override void FinishedLaunching(UIApplication app)
         {
             // Fun begins..
-            using (WaypointSample game = new WaypointSample())
-            {
-                game.Run();
-            }
+            WaypointSample game = new WaypointSample();
+            game.Run();
         }
 
         /// <summary>