<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOutlineViewDelegate/outlineView(_:didAdd:forRow:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSOutlineViewDelegate(im)outlineView:didAddRowView:forRow:"
  },
  "title" : "outlineView(_:didAdd:forRow:)"
}
-->

# outlineView(_:didAdd:forRow:)

Implemented to know when a new row view is added to the table.

```
@MainActor optional func outlineView(_ outlineView: NSOutlineView, didAdd rowView: NSTableRowView, forRow row: Int)
```

## Parameters

`outlineView`

The outline view that sent the message.

`rowView`

The new row view.

`row`

The row to which the view was added.

## Discussion

This delegate method is for NSView-based outline views. At this point, you can choose to add in extra views or modify any properties on `rowView`.

---

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)