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

Starting the ViewControl Application

In Xcode, create a new Cocoa Application named ViewControl. Uncheck Use Storyboards, Create Document-Based Application, and Use Core Data.

In the first phase of the ViewControl application, you will create a view controller to display an image. The view controller will be presented as the content view controller of a window (Figure 30.3). That is, the view controller will manage the contents of the window.

Figure 30.3  Object diagram for the ViewControl application

Object diagram for the ViewControl application

Open MainMenu.xib and delete the window supplied by the template. You will create your own window programmatically in the ...

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