I'm a PC guy taking his first shot at Mac. I'm building a Cocoa desktop app with Visual Studio for Mac, Xamarin.Mac, Xcode, .Net and C#.
The app consists in a home window with additional windows the user can select using menu items I added to the standard Mac app menu.
I'd like to close the active window when the user selects a new window. I can't find the line of code where it says "Open this new window.", where I could say just before "Close active window". Neither in Visual Studio nor Xcode. (So far, the interaction Visual Studio-Xcode is a bit of a black box to me.)
So how do you close a window before opening a new one?
And as a bonus question (if I may): how do I get rid of the close-min-max buttons in a window created from a view controller control. Easy to do with the home window, but I haven't found the way to do it in additional windows.