Contents

enumerateAvailableRowViews(_:)

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

Declaration

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; 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.