NSWindow Overview

The NSWindow class is a subclass of NSResponder and extends the capabilities of responders to provide an area of the display for drawing as well as aid event dispatching. In Cocoa applications, every window onscreen is an instance of the NSWindow class or one of its subclasses such as NSPanel. A window is needed to display the output from an application on the display.

Windows are composed of three major parts: an optional title bar, the content view, and an optional resize control. Figure 8.4 indicates the parts of a window. The title bar might contain a title and controls to minimize, maximize, or close the window. The window automatically manages these controls. The application can be notified when one of the controls is ...

Get Cocoa® Programming 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.