The NSWindow class defines objects (known as windows) that manage and coordinate the windows an application displays on the screen.
Language
- Swift
- Objective-C
SDK
- macOS 10.10+
Overview
A single NSWindow object corresponds to at most one onscreen window. The two principal functions of a window are to provide an area in which views can be placed and to accept and distribute, to the appropriate views, events the user instigates through actions with the mouse and keyboard.
Note
Although the NSWindow class inherits the NSCoding protocol from NSResponder, the class does not support coding. Legacy support for archivers exists but its use is deprecated and may not work. Any attempt to archive or unarchive an NSWindow object using a keyed coding object raises an invalidArgumentException exception.