<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/NSTableViewAppIntentsDataSource/outlineView(_:appEntityIdentifierFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents",
      "AppKit"
    ],
    "preciseIdentifier" : "s:012_AppIntents_A3Kit011NSTableViewaB10DataSourceP07outlineE0_22appEntityIdentifierFor0aB00jK0VSgSo09NSOutlineE0C_ypSgtF"
  },
  "title" : "outlineView(_:appEntityIdentifierFor:)"
}
-->

# outlineView(_:appEntityIdentifierFor:)

Asks the data source to return an app entity identifier for a particular item in the outline view.

```
@MainActor func outlineView(_ outlineView: NSOutlineView, appEntityIdentifierFor item: Any?) -> EntityIdentifier?
```

## Parameters

`outlineView`

The outline-view object asking for the app entity identifier.

`item`

The specified item in the outline view.

## Return Value

The app entity identifier for the item at the specified location in the outline view.

---

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)