<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/toolbar",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Toolbar"
}
-->

# Toolbar

Provide a space for controls under a window’s title bar and above your custom content.

## Topics

### View

[Integrating a Toolbar and Touch Bar into Your App](/documentation/AppKit/integrating-a-toolbar-and-touch-bar-into-your-app)

Provide users quick access to your app’s features from a toolbar and corresponding Touch Bar.

[`class NSToolbar`](/documentation/AppKit/NSToolbar)

An object that manages the space above your app’s custom content and either below or integrated with the window’s title bar.

[`protocol NSToolbarItemValidation`](/documentation/AppKit/NSToolbarItemValidation)

Validation of a toolbar item.

### Items

[`class NSToolbarItem`](/documentation/AppKit/NSToolbarItem)

A single item that appears in a window’s toolbar.

[`class NSToolbarItemGroup`](/documentation/AppKit/NSToolbarItemGroup)

A group of subitems in a toolbar item.

[`enum ControlRepresentation`](/documentation/AppKit/NSToolbarItemGroup/ControlRepresentation-swift.enum)

[`enum SelectionMode`](/documentation/AppKit/NSToolbarItemGroup/SelectionMode-swift.enum)

A value that indicates how a grouped toolbar item selects its subitems.

[`class NSMenuToolbarItem`](/documentation/AppKit/NSMenuToolbarItem)

A control that presents a menu in a window’s toolbar.

[`class NSSearchToolbarItem`](/documentation/AppKit/NSSearchToolbarItem)

A toolbar item that contains a search field optimized for performing text-based searches.

[`class NSTrackingSeparatorToolbarItem`](/documentation/AppKit/NSTrackingSeparatorToolbarItem)

A toolbar separator that aligns with the vertical split view in the same window.

### Item validation

[`protocol NSCloudSharingValidation`](/documentation/AppKit/NSCloudSharingValidation)

A protocol that a Cloud-sharing toolbar item uses to get validation of an item.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)