As my question I got stuck in this point. Actually my problem is, in my sample I have to show login screen on start of app if user logged with his/her credentials successfully he/her will redirect to Home screen. If user open app second time I have to show Home screen as he already logged in.
How do I solve this?
First you need to prevent cocoa from loading an initial controller by opening your storyboard, selecting your window controller, and in the attributes inspector unchecking "Is Initial Controller"
Then something like this:
with FirstController and SecondController being the identifiers of two NSWindowControllers in your main storyboard.