<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/enumerateAvailableRowViews(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(im)enumerateAvailableRowViewsUsingBlock:"
  },
  "title" : "enumerateAvailableRowViews(_:)"
}
-->

# enumerateAvailableRowViews(_:)

Allows the enumeration of all the table rows that are known to the table view.

```
func enumerateAvailableRowViews(_ handler: (NSTableRowView, Int) -> Void)
```

## Parameters

`handler`

The `Block` to apply to elements in the set.

    The     `Block`     takes two arguments:

- rowView: The view for the row.
- row: The index of the row.

## Discussion

The enumeration includes all views in the [`visibleRect`](/documentation/AppKit/NSView/visibleRect); however, it may also include ones that are “in flight” due to animations or other attributes of the table.

It is preferred to use this method to efficiently make changes over all views that exist in the table.

> Note:
> There is no guarantee that the rows will be enumerated in the displayed order.

---

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)