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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access