View Management

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

Topics

First Steps

NSViewController

A controller that manages a view, typically loaded from a nib file.

Window Management

NSWindowController

A controller that manages a window, usually a window stored in a nib file.

NSTitlebarAccessoryViewController

An object that manages a custom view—known as an accessory view—in the title bar–toolbar area of a window.

Paged Interface

NSPageController

An object that controls swipe navigation and animations between views or view content.

Split View Interface

NSSplitViewController

An object that manages an array of adjacent child views, and has a split view object for managing dividers between those views.

NSSplitView

A view that arranges two or more views in a linear stack running horizontally or vertically.

NSSplitViewItem

An item in a split view controller.

Stack View Interface

NSStackView

A view that arranges an array of views horizontally or vertically and that automatically updates their placement and sizing when the window size changes.

Tab View Interface

NSTabViewController

A container view controller that manages a tab view interface, which organizes multiple pages of content but displays only one page at a time.

NSTabView

A multipage interface that displays one page at a time.

NSTabViewItem

An item in a tab view.

Edit Management

NSEditor

A set of methods that controllers and UI elements can implement to manage editing.

NSEditorRegistration

A set of methods that controllers can implement to enable an editor view to inform the controller when it has uncommitted changes.

Media Library Interface

NSMediaLibraryBrowserController

An object that configures and displays a Media Library Browser panel.

See Also

User Interface

Views and Controls

Present and define the interactions for your content onscreen.

Menus, Cursors, and the Dock

Implement menus and cursors to facilitate interactions with your app, and use your app's Dock tile to convey updated information.

Windows, Panels, and Screens

Organize your view hierarchies and facilitate their display onscreen.

Accessibility

Make your app more accessible to users with disabilities.

Touch Bar

Display interactive content and controls in the Touch Bar.

Animation

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

Drag and Drop

Support the direct manipulation of your app's content using drag and drop.

Sound, Speech, and Haptics

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