<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPathControl/url",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPathControl(py)URL"
  },
  "title" : "url"
}
-->

# url

The path value displayed by the receiver.

```
var url: URL? { get set }
```

## Discussion

When setting, an array of `NSPathComponentCell` objects is automatically set based on the path in `url`. If `url` is a file URL (returns <doc://com.apple.documentation/documentation/Swift/true> from <doc://com.apple.documentation/documentation/Foundation/NSURL/isFileURL>), the images are automatically filled with file icons, if the path exists. The URL value itself is stored in the `objectValue` property of the cell.

---

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)