Chapter 6

Controlling Your Windows and Views

In This Chapter

arrow Introducing Cocoa’s windows

arrow Getting familiar with the Model-View-Controller (MVC) design pattern

arrow Creating and building a project using MVC

arrow Implementing a view and a controller

arrow Creating and sending notifications

In 1984, Apple revealed the Macintosh, the first mass-market computer that introduced a new way for ordinary humans to interact with their computers. The highlight of this new approach was the use of windows (framed screen areas) to display the information that users would work with. Today, you’ll find the use of computer windows everywhere, including an operating system of that name. Apple lit the torch, and the world has followed.

Nearly all Macintosh apps provide windows, and chances are your apps will also do so. In this chapter, I show you the basics of using windows in your Mac apps. I’ll also cover views, which are objects that can be displayed within a window. Every user interface component is a subclass of ...

Get Mac® Application Development For Dummies® 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.