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 ...

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide 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.