<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBrowser/columnWidth(forColumnContentWidth:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBrowser(im)columnWidthForColumnContentWidth:"
  },
  "title" : "columnWidth(forColumnContentWidth:)"
}
-->

# columnWidth(forColumnContentWidth:)

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

```
func columnWidth(forColumnContentWidth columnContentWidth: CGFloat) -> CGFloat
```

## Parameters

`columnContentWidth`

The width of the column’s content (the width of the matrix in the column).

## Return Value

The width of the column (the width of the entire scrolling text view).

## Discussion

For example, to guarantee that 16 pixels of your browser cell are always visible, call:

```objc
[browser setMinColumnWidth: [browser columnWidthForColumnContentWidth:16]]
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)