---
title: clickedPathComponentCell
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspathcell/clickedpathcomponentcell
---

# clickedPathComponentCell

Sets the value of the path displayed by the receiver.

## Declaration

```swift
var clickedPathComponentCell: NSPathComponentCell? { get }
```

## Parameters

- `url`: The new path value to display.

## Discussion

Discussion When setting, an array of NSPathComponentCell objects is automatically set, based on the path in url. The type of NSPathComponentCell objects created can be controlled by subclassing NSPathCell and overriding pathComponentCellClass. If url is a file URL (returns true from 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.

## See Also

### Managing Path Components

- [pathComponentCellClass](appkit/nspathcell/pathcomponentcellclass.md)
- [rect(of:withFrame:in:)](appkit/nspathcell/rect(of:withframe:in:).md)
- [pathComponentCell(at:withFrame:in:)](appkit/nspathcell/pathcomponentcell(at:withframe:in:).md)
- [pathComponentCells](appkit/nspathcell/pathcomponentcells.md)
