---
title: "path(toColumn:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/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.

## Declaration

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

## Parameters

- `column`: The index of the column at which the path stops.

## Return Value

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.

## See Also

### Managing the Path

- [path()](appkit/nsbrowser/path().md)
- [setPath(_:)](appkit/nsbrowser/setpath(_:).md)
- [pathSeparator](appkit/nsbrowser/pathseparator.md)
