Contents

setAutoresizesAllColumnsToFit:

Controls whether the table view proportionally resizes its columns to fit when its superview’s frame changes.

Declaration

- (void) setAutoresizesAllColumnsToFit:(BOOL) flag;

Discussion

If flag is true, the difference in width is distributed among the table view’s table columns; if flag is false, only the last column is resized to fit.

To preserve compatibility this method sets the autoresizing style to NSTableView.ColumnAutoresizingStyle.uniformColumnAutoresizingStyle , if flag is true. Otherwise the autoresizing style is set to NSTableView.ColumnAutoresizingStyle.lastColumnOnlyAutoresizingStyle.

See Also

Deprecated Methods