Class

NSPanel

The NSPanel class implements a special kind of window (known as a panel), typically performing an auxiliary function.

Overview

For details about how panels work (especially to find out how their behavior differs from window behavior), see How Panels Work.

Symbols

Configuring Panels

var isFloatingPanel: Bool

A Boolean value that indicates whether the receiver is a floating panel.

var becomesKeyOnlyIfNeeded: Bool

A Boolean value that indicates whether the receiver becomes the key window only when needed.

var worksWhenModal: Bool

A Boolean value that indicates whether the panel receives keyboard and mouse events even when some other window is being run modally.

Constants

Alert Panel Return Values

These constants define values returned by the NSRunAlertPanel function and by the NSApplication method runModalSession(_:) when the modal session is run with an NSPanel provided by the NSGetAlertPanel function.

Modal Panel Return Values

These constants define the possible return values for such methods as the runModal... methods of the NSOpenPanel class, which tell which button (OK or Cancel) the user has clicked on an open panel.

Style Masks

The NSPanel class defines the following constants for panel styles:

Relationships

Inherits From

Conforms To