I created an OS X Cocoa application using the Swift language in Xcode. I set my main storyboard as follows:

And when I launch the application and press the button, it opens a new window for another View Controller, like this, which I donโt want. This is what I get:

What I want is exactly what ViewControllers need to switch, but in the same window, not in a new window. How to stop the behavior of a new window and make this work in the same window?
source share