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

# clickedPathComponentCell()

Returns the clicked cell.

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

## Return Value

The component cell that was clicked.

## 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.

---

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)