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

# NSUserInterfaceItemIdentification

A set of methods used to associate a unique identifier with objects in your user interface.

```
protocol NSUserInterfaceItemIdentification
```

## Overview

The protocol is adopted by AppKit interface objects to support window restoration, whereby information about window and other interface-related objects is preserved and used to restore the application’s interface during the next launch cycle.

## Topics

### Accessing the User Interface Identifier

[`identifier`](/documentation/AppKit/NSUserInterfaceItemIdentification/identifier)

A string that identifies the user interface item.

[`NSUserInterfaceItemIdentifier`](/documentation/AppKit/NSUserInterfaceItemIdentifier)

## Relationships

### Conforming Types

[`NSScrubberSelectionView`](/documentation/AppKit/NSScrubberSelectionView)

[`NSTextFieldCell`](/documentation/AppKit/NSTextFieldCell)

[`NSScrubberImageItemView`](/documentation/AppKit/NSScrubberImageItemView)

[`NSView`](/documentation/AppKit/NSView)

[`NSActionCell`](/documentation/AppKit/NSActionCell)

[`NSCollectionViewItem`](/documentation/AppKit/NSCollectionViewItem)

[`NSGlassEffectContainerView`](/documentation/AppKit/NSGlassEffectContainerView)

[`NSWindow`](/documentation/AppKit/NSWindow)

[`NSRuleEditor`](/documentation/AppKit/NSRuleEditor)

[`NSTextAttachmentCell-swift.class`](/documentation/AppKit/NSTextAttachmentCell-swift.class)

[`NSPathComponentCell`](/documentation/AppKit/NSPathComponentCell)

[`NSButton`](/documentation/AppKit/NSButton)

[`NSCollectionView`](/documentation/AppKit/NSCollectionView)

[`NSBackgroundExtensionView`](/documentation/AppKit/NSBackgroundExtensionView)

[`NSComboBox`](/documentation/AppKit/NSComboBox)

[`NSBox`](/documentation/AppKit/NSBox)

[`NSColorPanel`](/documentation/AppKit/NSColorPanel)

[`NSControl`](/documentation/AppKit/NSControl)

[`NSMatrix`](/documentation/AppKit/NSMatrix)

[`NSScroller`](/documentation/AppKit/NSScroller)

[`NSBrowser`](/documentation/AppKit/NSBrowser)

[`NSTextInsertionIndicator`](/documentation/AppKit/NSTextInsertionIndicator)

[`NSGlassEffectView`](/documentation/AppKit/NSGlassEffectView)

[`NSImageView`](/documentation/AppKit/NSImageView)

[`NSForm`](/documentation/AppKit/NSForm)

[`NSTabViewController`](/documentation/AppKit/NSTabViewController)

[`NSTableHeaderView`](/documentation/AppKit/NSTableHeaderView)

[`NSStepper`](/documentation/AppKit/NSStepper)

[`NSFormCell`](/documentation/AppKit/NSFormCell)

[`NSSecureTextField`](/documentation/AppKit/NSSecureTextField)

[`NSComboButton`](/documentation/AppKit/NSComboButton)

[`NSStepperCell`](/documentation/AppKit/NSStepperCell)

[`NSStatusBarButton`](/documentation/AppKit/NSStatusBarButton)

[`NSScrubberItemView`](/documentation/AppKit/NSScrubberItemView)

[`NSScrollView`](/documentation/AppKit/NSScrollView)

[`NSScrubberArrangedView`](/documentation/AppKit/NSScrubberArrangedView)

[`NSTextView`](/documentation/AppKit/NSTextView)

[`NSPopUpButtonCell`](/documentation/AppKit/NSPopUpButtonCell)

[`NSVisualEffectView`](/documentation/AppKit/NSVisualEffectView)

[`NSBrowserCell`](/documentation/AppKit/NSBrowserCell)

[`NSSavePanel`](/documentation/AppKit/NSSavePanel)

[`NSScrubber`](/documentation/AppKit/NSScrubber)

[`NSText`](/documentation/AppKit/NSText)

[`NSOpenGLView`](/documentation/AppKit/NSOpenGLView)

[`NSDatePickerCell`](/documentation/AppKit/NSDatePickerCell)

[`NSTableColumn`](/documentation/AppKit/NSTableColumn)

[`NSTableHeaderCell`](/documentation/AppKit/NSTableHeaderCell)

[`NSFontPanel`](/documentation/AppKit/NSFontPanel)

[`NSPopUpButton`](/documentation/AppKit/NSPopUpButton)

[`NSSwitch`](/documentation/AppKit/NSSwitch)

[`NSPathCell`](/documentation/AppKit/NSPathCell)

[`NSTokenField`](/documentation/AppKit/NSTokenField)

[`NSColorWell`](/documentation/AppKit/NSColorWell)

[`NSPredicateEditor`](/documentation/AppKit/NSPredicateEditor)

[`NSImageCell`](/documentation/AppKit/NSImageCell)

[`NSSearchFieldCell`](/documentation/AppKit/NSSearchFieldCell)

[`NSPathControl`](/documentation/AppKit/NSPathControl)

[`NSSplitViewController`](/documentation/AppKit/NSSplitViewController)

[`NSTableCellView`](/documentation/AppKit/NSTableCellView)

[`NSLevelIndicatorCell`](/documentation/AppKit/NSLevelIndicatorCell)

[`NSSplitView`](/documentation/AppKit/NSSplitView)

[`NSSegmentedCell`](/documentation/AppKit/NSSegmentedCell)

[`NSSegmentedControl`](/documentation/AppKit/NSSegmentedControl)

[`NSViewController`](/documentation/AppKit/NSViewController)

[`NSScrubberTextItemView`](/documentation/AppKit/NSScrubberTextItemView)

[`NSComboBoxCell`](/documentation/AppKit/NSComboBoxCell)

[`NSSecureTextFieldCell`](/documentation/AppKit/NSSecureTextFieldCell)

[`NSTitlebarAccessoryViewController`](/documentation/AppKit/NSTitlebarAccessoryViewController)

[`NSMenu`](/documentation/AppKit/NSMenu)

[`NSDatePicker`](/documentation/AppKit/NSDatePicker)

[`NSButtonCell`](/documentation/AppKit/NSButtonCell)

[`NSSlider`](/documentation/AppKit/NSSlider)

[`NSLayoutGuide`](/documentation/AppKit/NSLayoutGuide)

[`NSCell`](/documentation/AppKit/NSCell)

[`NSOutlineView`](/documentation/AppKit/NSOutlineView)

[`NSTableView`](/documentation/AppKit/NSTableView)

[`NSTokenFieldCell`](/documentation/AppKit/NSTokenFieldCell)

[`NSStackView`](/documentation/AppKit/NSStackView)

[`NSSliderCell`](/documentation/AppKit/NSSliderCell)

[`NSMenuItemCell`](/documentation/AppKit/NSMenuItemCell)

[`NSProgressIndicator`](/documentation/AppKit/NSProgressIndicator)

[`NSTabView`](/documentation/AppKit/NSTabView)

[`NSLevelIndicator`](/documentation/AppKit/NSLevelIndicator)

[`NSSearchField`](/documentation/AppKit/NSSearchField)

[`NSTableRowView`](/documentation/AppKit/NSTableRowView)

[`NSRulerView`](/documentation/AppKit/NSRulerView)

[`NSClipView`](/documentation/AppKit/NSClipView)

[`NSOpenPanel`](/documentation/AppKit/NSOpenPanel)

[`NSMenuItem`](/documentation/AppKit/NSMenuItem)

[`NSGridView`](/documentation/AppKit/NSGridView)

[`NSPageController`](/documentation/AppKit/NSPageController)

[`NSPanel`](/documentation/AppKit/NSPanel)

[`NSSplitViewItemAccessoryViewController`](/documentation/AppKit/NSSplitViewItemAccessoryViewController)

[`NSTextField`](/documentation/AppKit/NSTextField)

### Inherited By

[`NSCollectionViewElement`](/documentation/AppKit/NSCollectionViewElement)

[`NSCollectionViewSectionHeaderView`](/documentation/AppKit/NSCollectionViewSectionHeaderView)

---

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)