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

# tableView(_:appEntityIdentifierFor:)

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

```
@MainActor func tableView(_ tableView: NSTableView, appEntityIdentifierFor row: Int) -> EntityIdentifier?
```

## Parameters

`tableView`

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

`row`

The row of the item in the table view.

## Return Value

The app entity identifier for the item at the specified location in the table 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)