Instance Method

insertRowsAtIndexes:withAnimation:

Inserts the rows using the specified animation.

Declaration

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

Parameters

indexes

The final positions of the new rows to be inserted.

animationOptions

The animation displayed during the insert. See NSTableViewAnimationOptions 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

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

- removeRowsAtIndexes:withAnimation:

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