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

# path(toColumn:)

Returns a string representing the path from the first column up to, but not including, the column at the given index.

```
func path(toColumn column: Int) -> String
```

## Parameters

`column`

The index of the column at which the path stops.

## Return Value

The path of the current selection up to, but not including, the specified column. The components of this path are separated with the string returned by [`pathSeparator`](/documentation/AppKit/NSBrowser/pathSeparator).

---

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)