Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

NSWindow Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac OS X v10.0 and later.
Companion guide
Declared in
NSDrawer.h
NSGraphics.h
NSWindow.h

Overview

The NSWindow class defines objects (known as windows) that manage and coordinate the windows an application displays on the screen. 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 NSInvalidArgumentException exception.

Tasks

Creating Windows

Configuring Windows

Accessing Window Information

Getting Layout Information

Managing Windows

Managing Sheets

Sizing

Sizing Content

Managing Window Layers

Managing Window Frames in User Defaults

Managing Key Status

Managing Main Status

Managing Toolbars

Managing Attached Windows

Managing Window Buffers

Managing Default Buttons

Managing Field Editors

Managing the Window Menu

Managing Cursor Rectangles

Managing Title Bars

Managing Tooltips

Handling Events

Managing Responders

Managing the Key View Loop

Handling Keyboard Events

Handling Mouse Events