Instance Method

moveColumn:toColumn:

Moves the column and heading at the specified index to the new specified index.

Declaration

- (void)moveColumn:(NSInteger)oldIndex toColumn:(NSInteger)newIndex;

Parameters

columnIndex

The current index in the tableColumns array of the column to move.

newIndex

The new index in the tableColumns array for the moved column.

Discussion

This method posts NSTableViewColumnDidMoveNotification to the default notification center.

See Also

Column Management

- addTableColumn:

Adds the specified column as the last column of the table view.

- removeTableColumn:

Removes the specified column from the table view.

tableColumns

An array containing the current table column objects.

- columnWithIdentifier:

Returns the index of the first column in the table view whose identifier is equal to the specified identifier.

- tableColumnWithIdentifier:

Returns the NSTableColumn object for the first column whose identifier is equal to the specified object.