Chapter 12. NIB Files and NSWindowController

In RaiseMan, you are already using two NIB files: MainMenu.nib and RMDocument. nib. (Recall that the compiler converts our XIB files to NIB files during the build process.) MainMenu.nib is automatically loaded by NSApplication when the application first launches. RMDocument.nib is automatically loaded each time an instance of RMDocument is created. In this chapter, you will learn how to load NIB files by using NSWindowController.

Why would you want to load a NIB file? Most commonly, your application will have several windows (such as a Find panel and a Preferences panel) that are used only occasionally. By putting off loading the NIB until the window is needed, your application will launch faster. ...

Get Cocoa® Programming for Mac® OS X, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.