Windows, Panels, and Screens

Organize your view hierarchies and facilitate their display onscreen.

Topics

Windows

NSWindow

A window that an app displays on the screen.

NSPanel

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

NSWindowDelegate

A set of optional methods that a delegate of NSWindow can implement to respond to events, such as window resizing, moving, exposing, and minimizing.

NSWindowTab

A tab associated with a window that is part of a tabbing group.

NSWindowTabGroup

A group of windows that display together as a single tabbed window.

Window Restoration

NSWindowRestoration

A set of methods that restoration classes must implement to handle the recreation of windows.

NSUserInterfaceItemIdentification

A set of methods used to associate a unique identifier with objects in your user interface.

Screens

NSScreen

An object that describes the attributes of a computer’s monitor or screen.

Popovers

NSPopover

A means to display additional content related to existing content on the screen.

NSPopoverDelegate

A set of optional methods that a popover delegate can implement to provide additional or custom functionality.

Alerts

NSAlert

A modal dialog or sheet attached to a document window.

NSAlertDelegate

A set of optional methods implemented by the delegate of an NSAlert object to respond to a user's request for help.

Open and Save Panels

NSOpenPanel

A panel that prompts the user to select a file to open.

NSSavePanel

A panel that prompts the user for information about where to save a file.

NSOpenSavePanelDelegate

A set of methods for managing interactions with an open or save panel.

Print and PDF Panels

NSPDFPanel

A Save or Export as PDF panel that’s consistent with the macOS user interface.

NSPrintPanelAccessorizing

A set of methods that a print panel object can use to get information from a printing accessory controller.

Color Panels

NSColorPanel

A standard user interface for selecting color in an app.

NSColorPickingCustom

A set of methods that provides a way to add color pickers—custom user interfaces for color selection—to an app’s color panel.

NSColorPickingDefault

A set of methods that provides basic behavior for a color picker.

NSColorPicker

An abstract superclass that implements the NSColorPickingDefault protocol.

Font Panels

NSFontPanel

The Font panel—a user interface object that displays a list of available fonts, letting the user preview them and change the font used to display text.

NSFontPanelValidation

A set of methods you use to tell the Font panel to display some or all of its elements.

See Also

User Interface

Supporting Continuity Camera in Your Mac App

Incorporate scanned documents and pictures taken with a user's iPhone, iPad, or iPod touch into your Mac app using Continuity Camera.

Views and Controls

Present your content onscreen and define the interactions allowed with that content.

View Management

Manage your user interface, including the size and position of views in a window.

View Layout

Position and size views using a stack view or Auto Layout constraints.

Appearance Customization

Add Dark Mode support to your app, and use appearance proxies to modify your UI.

Animation

Animate your views and other content to create a more engaging experience for users.

Sound, Speech, and Haptics

Play sounds and haptic feedback, and incorporate speech recognition and synthesis into your interface.