Chapter 7. A Cocoa Application: Controllers
Still in Interface Builder
We’ve drawn and configured our views and are ready to work on the Controller layer of our application. Surprisingly, we’ll still be working with Interface Builder for much of this phase of development. Interface Builder is a powerful tool for storing Cocoa objects and specifying links between them. You have seen that IB keeps a placeholder for File’s Owner in the Nib window. We’re going to tell Interface Builder that the owner of this particular kind of Nib will be an object of class MyDocument
and what the structure of a MyDocument
is. We’ll also create additional objects to do most of the work in managing the data in our application.
Arrange the windows of Xcode and Interface ...
Get Step into Xcode Mac OS X Development 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.