---
title: "tableView(_:appEntityIdentifierFor:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/nstableviewappintentsdatasource/tableview(_:appentityidentifierfor:)"
---

# tableView(_:appEntityIdentifierFor:)

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

## Declaration

```swift
@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

Return Value The app entity identifier for the item at the specified location in the table view.
