Contents

insertRows(at:withAnimation:)

Inserts the rows using the specified animation.

Declaration

func insertRows(at indexes: IndexSet, withAnimation animationOptions: NSTableView.AnimationOptions = [])

Parameters

  • indexes:

    The final positions of the new rows to be inserted.

  • animationOptions:

    The animation displayed during the insert. See Animationoptions for the possible values that can be combined using the C bitwise OR operator.

Discussion

The numberOfRows in the table view is automatically increased by the count of indexes.

Calling this method multiple times within the same beginUpdates() and endUpdates() block is allowed, and changes are processed incrementally.

See Also

Updating the Table View Arrangement