---
title: "tableView(_:didAdd:forRow:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableviewdelegate/tableview(_:didadd:forrow:)"
---

# tableView(_:didAdd:forRow:)

Tells the delegate that a row view was added at the specified row.

## Declaration

```swift
@MainActor optional func tableView(_ tableView: NSTableView, didAdd rowView: NSTableRowView, forRow row: Int)
```

## Parameters

- `tableView`: The table view that sent the message.
- `rowView`: The row view.
- `row`: The index of the row.

## Discussion

Discussion At this point, the delegate can add extra views, or modify the properties of rowView. note: This method is only valid for NSView-based table views.

## See Also

### Notification of row views being added or removed

- [tableView(_:didRemove:forRow:)](appkit/nstableviewdelegate/tableview(_:didremove:forrow:).md)
