---
title: "browser(_:shouldSizeColumn:forUserResize:toWidth:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowserdelegate/browser(_:shouldsizecolumn:foruserresize:towidth:)"
---

# browser(_:shouldSizeColumn:forUserResize:toWidth:)

Used to determine a column’s initial size.

## Declaration

```swift
@MainActor optional func browser(_ browser: NSBrowser, shouldSizeColumn columnIndex: Int, forUserResize: Bool, toWidth suggestedWidth: CGFloat) -> CGFloat
```

## Parameters

- `browser`: The browser.
- `columnIndex`: The index of the column to size.
- `forUserResize`: Currently, this is always set to doc://com.apple.documentation/documentation/Swift/false.
- `suggestedWidth`: The suggested width for the column.

## Return Value

Return Value The delegate’s desired initial width for a newly added column. If you want to accept the suggested width, return suggestedWidth. If you return 0 or a size too small to display the resize handle and a portion of the column, the actual size used will be larger than the size you requested.

## Discussion

Discussion This method applies only to browsers with resize type NSBrowser.ColumnResizingType.noColumnResizing or NSBrowser.ColumnResizingType.userColumnResizing (see NSBrowser.ColumnResizingType).

## See Also

### Related Documentation

- [setWidth(_:ofColumn:)](appkit/nsbrowser/setwidth(_:ofcolumn:).md)

### Sizing

- [browser(_:sizeToFitWidthOfColumn:)](appkit/nsbrowserdelegate/browser(_:sizetofitwidthofcolumn:).md)
- [browserColumnConfigurationDidChange(_:)](appkit/nsbrowserdelegate/browsercolumnconfigurationdidchange(_:).md)
- [browser(_:heightOfRow:inColumn:)](appkit/nsbrowserdelegate/browser(_:heightofrow:incolumn:).md)
