<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/outline-view-button-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Outline View Button Keys"
}
-->

# Outline View Button Keys

These keys are used by the outline view to create disclosure buttons that collapse and expand items.

## Discussion

The outline view creates these buttons by calling its inherited [`makeView(withIdentifier:owner:)`](/documentation/AppKit/NSTableView/makeView(withIdentifier:owner:)) method, passing in the key as the identifier and the delegate as the owner.

> Note:
> These keys are backwards compatible to OS X v10.7, however, the symbol is not exported prior to v10.9 and the string value (`@"NSOutlineViewDisclosureButtonKey"`) must be used.

## Topics

### Constants

[`class let disclosureButtonIdentifier: NSUserInterfaceItemIdentifier`](/documentation/AppKit/NSOutlineView/disclosureButtonIdentifier)

The normal triangle disclosure button.

[`class let showHideButtonIdentifier: NSUserInterfaceItemIdentifier`](/documentation/AppKit/NSOutlineView/showHideButtonIdentifier)

The Show/Hide button.



---

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)