Instance Method

removeRowsAtIndexes:withAnimation:

Removes the rows using the specified animation.

Declaration

- (void)removeRowsAtIndexes:(NSIndexSet *)indexes withAnimation:(NSTableViewAnimationOptions)animationOptions;

Parameters

indexes

An index set containing the rows to remove.

animationOptions

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

Discussion

This method deletes from the table the rows represented at indexes and automatically decreases numberOfRows by the count of indexes.

The row indexes should be with respect to the current state displayed in the table view, and not the final state, because the specified rows do not exist in the final state.

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

Changes are processed incrementally as the insertRowsAtIndexes:withAnimation:, removeRowsAtIndexes:withAnimation:, and the moveRowAtIndex:toIndex: methods are called. It is acceptable to delete row 0 multiple times, as long as there is still a row available.

See Also

Updating the Table View Arrangement

- beginUpdates

Begins a group of updates for the table view.

- endUpdates

Ends the group of updates for the table view.

- moveRowAtIndex:toIndex:

Moves the specified row to the new row location using animation.

- insertRowsAtIndexes:withAnimation:

Inserts the rows using the specified animation.

- rowForView:

Returns the index of the row for the specified view.

- columnForView:

Returns the column index for the specified view.