hideRows(at:withAnimation:)
Hides the specified table rows.
Declaration
func hideRows(at indexes: IndexSet, withAnimation rowAnimation: NSTableView.AnimationOptions = [])Parameters
- indexes:
An index set containing indexes of the rows to be hidden.
- rowAnimation:
An animation effect to be applied when the rows are hidden.
Discussion
Use this method when you no longer want the data to be visible to the user, but you don’t want to permanently remove the data. Hidden table rows have a height of zero and cannot be selected by the user. However, if a selected table row is hidden, it will remain selected.
Hiding a table row causes the tableView(_:didRemove:forRow:) delegate method to be invoked.