Introduction to View Programming Guide for Cocoa

A view instance is responsible for drawing and responding to user actions in a rectangular region of a window. This document describes the role of views in a Cocoa application, how to manipulate views in a window, and how to create a custom view subclass for an application.

Who Should Read This Document

You should read this document to gain an understanding of working with views in a Cocoa application. You are expected to be familiar with Cocoa development, including the Objective-C language and memory management. The “Creating a Custom View” article expects that a developer is familiar with the Cocoa event model described in Cocoa Event Handling Guide as well as the graphics drawing environment described in Cocoa Drawing Guide.

Organization of This Document

View Programming Guide for Cocoa consists of the following chapters:

See Also

There are other technologies, not fully covered in this document, that are fundamental to using views in your application. Refer to these documents for more details:

There is also sample code available that provides detailed examples of view usage. The following sample code is installed in /Developer/Examples/Appkit:

Additional sample code is available through Apple Developer Connection: