O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

For the More Curious: How is the Storyboard Loaded?

You might be wondering how the storyboard gets loaded in the first place. Just like with MainMenu.xib, the answer is in the Info.plist.

If you check the Info.plist for this project you will see that the key NSMainStoryboardFile is set to Main.

Scenes can also be loaded from storyboards programmatically. The NSStoryboard class provides this, much like NSBundle does for NIB-loading. Within a storyboard, one scene can be designated as the initial controller. This is used in the application’s Main.storyboard to designate the application window to be opened at launch.

Controllers within a storyboard can also be instantiated by their identifier, which is set in the identity inspector. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required