---
title: NSPanel
framework: appkit
role: symbol
role_heading: Class
path: appkit/nspanel
---

# NSPanel

A special kind of window that typically performs a function that is auxiliary to the main window.

## Declaration

```swift
@MainActor class NSPanel
```

## Overview

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

## Topics

### Configuring Panels

- [isFloatingPanel](appkit/nspanel/isfloatingpanel.md)
- [becomesKeyOnlyIfNeeded](appkit/nspanel/becomeskeyonlyifneeded.md)
- [worksWhenModal](appkit/nspanel/workswhenmodal.md)

### Constants

- [Alert Panel Return Values](appkit/alert-panel-return-values.md)
- [Modal Panel Return Values](appkit/modal-panel-return-values.md)
- [Style Masks](appkit/style-masks.md)

## Relationships

### Inherits From

- [NSWindow](appkit/nswindow.md)

### Inherited By

- [NSColorPanel](appkit/nscolorpanel.md)
- [NSFontPanel](appkit/nsfontpanel.md)
- [NSSavePanel](appkit/nssavepanel.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSAccessibilityElementProtocol](appkit/nsaccessibilityelementprotocol.md)
- [NSAccessibilityProtocol](appkit/nsaccessibilityprotocol.md)
- [NSAnimatablePropertyContainer](appkit/nsanimatablepropertycontainer.md)
- [NSAppearanceCustomization](appkit/nsappearancecustomization.md)
- [NSCoding](foundation/nscoding.md)
- [NSMenuItemValidation](appkit/nsmenuitemvalidation.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [NSUserInterfaceValidations](appkit/nsuserinterfacevalidations.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Windows

- [NSWindow](appkit/nswindow.md)
- [NSWindowDelegate](appkit/nswindowdelegate.md)
- [NSWindowTab](appkit/nswindowtab.md)
- [NSWindowTabGroup](appkit/nswindowtabgroup.md)
