NSWindowController Overview

The NSWindowController class is often used as the file’s owner when loading a .nib containing the definition of a window. The NSWindowController class can be used to customize a window’s title, preserve the window’s position and size in the user’s defaults database, cascade windows onscreen, and manage the window’s memory when the window is closed. Unlike NSApplication, NSWindow, and NSView, the NSWindowController class is not a core part of the Application Kit architecture. NSWindowController is provided as a convenience to help implement a common feature of applications, the dynamic loading of windows from nibs and their subsequent management.

NSWindowController can be used to manage windows that are created programmatically ...

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.