---
title: clickedPathComponentCell()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nspathcontrol/clickedpathcomponentcell()
---

# clickedPathComponentCell()

Returns the clicked cell.

## Declaration

```swift
func clickedPathComponentCell() -> NSPathComponentCell?
```

## Return Value

Return Value The component cell that was clicked.

## Discussion

Discussion The value returned is generally valid only when the action or double action is being sent. note: In OS X v10.5 and earlier the returned value was [nil] if no cell had been clicked. In OS X v10.6, the folder of the cell that the user selected is returned instead.

## See Also

### Managing Path Components

- [pathComponentCells()](appkit/nspathcontrol/pathcomponentcells().md)
- [setPathComponentCells(_:)](appkit/nspathcontrol/setpathcomponentcells(_:).md)
