I've created an application with multiple windows. Some windows doesn't open when the application starts because I said not to. I want to open these windows by selecting a menu item like "Preferences...". With "orderFront" I'm able to do so but when I close the window after opening it and reopen it again, the application crashes. How can I reopen a window after closing it? The function "orderFront" makes the application crashing.