Contents

outlineView(_:didRemove:forRow:)

Implemented to know when a row view is removed from the table

Declaration

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

Parameters

  • outlineView:

    The outline view that sent the message.

  • rowView:

    The row view that was removed.

  • row:

    The number of the row that was removed due to being moved offscreen, or -1 if the row was removed from the table so it is no longer valid.

Discussion

The removed rowView may be reused by the table, so any additionally inserted views should be removed at this point.

See Also

Working with NSView-Based Outline Views