<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTrackingSeparatorToolbarItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTrackingSeparatorToolbarItem"
  },
  "title" : "NSTrackingSeparatorToolbarItem"
}
-->

# NSTrackingSeparatorToolbarItem

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

```
class NSTrackingSeparatorToolbarItem
```

## Overview

Use a `NSTrackingSeparatorToolbarItem` to divide an [`NSToolbar`](/documentation/AppKit/NSToolbar) into sections that visually align with the views on either side of the divider of the [`splitView`](/documentation/AppKit/NSTrackingSeparatorToolbarItem/splitView). This keeps [`NSToolbarItem`](/documentation/AppKit/NSToolbarItem)s above the content that’s the [`target`](/documentation/AppKit/NSToolbarItem/target) for the item’s [`target`](/documentation/AppKit/NSToolbarItem/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:)`](/documentation/AppKit/NSTrackingSeparatorToolbarItem/init(identifier:splitView:dividerIndex:))

Creates a new tracking separator toolbar item and configures it to align with the divider of the split view.

### configuring a tracking separator

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

The index of the split view divider to align with the tracking separator.

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

The vertical split view to align with the toolbar separator.



---

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)