I'm trying to show an extra window before the main game window starts on Mac OS X. This is a NSWindow to present resolution settings etc.
Running the NSWindow and closing it changes the main menu completely. I seem to be just getting the near-empty menu from the closed custom window only, and quit does not function from the menu or keyboard shortcut.
Is there someway to reset or reload things after the custom window is closed? Or some other way I should be doing this?
Code (more or less):
static void Main(string[] args)
{
NSApplication.Init();
var window = new NSWindow(...);
window.MakeKeyAndOrderFront(window);
NSApplication.SharedApplication.RunModalForWindow(window);
window.Close();
window.Dispose();
window = null;
using (var game = new MyGame())
{
game.Run();
}
}
Thanks...