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

Showing the Window

At this point, it would be great to run the application and see your objects unarchived and put on screen. However, if you run RandomPassword, all you will see is a disappointingly empty window (Figure 1.17).

Give it a try. Use the keyboard shortcut Command-R to build and run the app.

Figure 1.17  Empty window with the wrong title

Empty window with the wrong title

Not only is the window empty, it also has the wrong title. This is not your window. It is a window that the template created for the AppDelegate controller to control. To understand why this is the window you are seeing, let’s look at the app’s structure, diagrammed in Figure 1.18 ...

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