---
title: NSTrackingSeparatorToolbarItem
framework: appkit
role: symbol
role_heading: Class
path: appkit/nstrackingseparatortoolbaritem
---

# NSTrackingSeparatorToolbarItem

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

## Declaration

```swift
class NSTrackingSeparatorToolbarItem
```

## Overview

Overview Use a NSTrackingSeparatorToolbarItem to divide an NSToolbar into sections that visually align with the views on either side of the divider of the splitView. This keeps NSToolbarItems above the content that’s the target for the item’s target. The splitView must be in the same window as the toolbar containing this item before showing the toolbar.

## Topics

### Creating a tracking separator

- [init(identifier:splitView:dividerIndex:)](appkit/nstrackingseparatortoolbaritem/init(identifier:splitview:dividerindex:).md)

### configuring a tracking separator

- [dividerIndex](appkit/nstrackingseparatortoolbaritem/dividerindex.md)
- [splitView](appkit/nstrackingseparatortoolbaritem/splitview.md)

## Relationships

### Inherits From

- [NSToolbarItem](appkit/nstoolbaritem.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSMenuItemValidation](appkit/nsmenuitemvalidation.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSValidatedUserInterfaceItem](appkit/nsvalidateduserinterfaceitem.md)

## See Also

### Items

- [NSToolbarItem](appkit/nstoolbaritem.md)
- [NSToolbarItemGroup](appkit/nstoolbaritemgroup.md)
- [NSToolbarItemGroup.ControlRepresentation](appkit/nstoolbaritemgroup/controlrepresentation-swift.enum.md)
- [NSToolbarItemGroup.SelectionMode](appkit/nstoolbaritemgroup/selectionmode-swift.enum.md)
- [NSMenuToolbarItem](appkit/nsmenutoolbaritem.md)
- [NSSearchToolbarItem](appkit/nssearchtoolbaritem.md)
