Instance Method


Sets the width of the specified column.


- (void)setWidth:(CGFloat)columnWidth ofColumn:(NSInteger)columnIndex;



The new width of the specified column.


The index of the column for which to set the width.


This method can be used to set the initial width of browser columns unless the column sizing is automatic; setWidth:ofColumn: does nothing if columnResizingType is NSBrowserAutoColumnResizing. To set the default width for new columns (that don’t otherwise have initial widths from defaults or via the delegate), use a columnIndex of –1. A value set for columnIndex of –1 is persistent. An NSBrowserColumnConfigurationDidChangeNotification notification is posted (not immediately), if necessary, so that the browser can autosave the new column configuration.

See Also


+ removeSavedColumnsWithAutosaveName:

Removes the column configuration data stored under the given name from the application’s user defaults.


The name used to automatically save the browser’s column configuration.

- columnContentWidthForColumnWidth:

Returns the content width for a given column width.

- columnWidthForColumnContentWidth:

Returns the column width for the width of the given column’s content.


A constant indicating the browser’s column resizing type.


A Boolean that indicates whether the browser is set to resize all columns simultaneously rather than resizing a single column at a time.

- widthOfColumn:

Returns the width of the specified column.

- defaultColumnWidth

Returns the default column width of the browser’s columns.

- setDefaultColumnWidth:

Sets the default column width for new browser columns that do not otherwise have an initial width from defaults or the browser’s delegate.


The height of the browser’s rows.