---
title: pathComponentCells
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspathcell/pathcomponentcells
---

# pathComponentCells

Sets the array of NSPathComponentCell objects currently being displayed.

## Declaration

```swift
var pathComponentCells: [NSPathComponentCell] { get set }
```

## Parameters

- `cells`: An array of NSPathComponentCell objects.

## Discussion

Discussion Each item in the array must be an instance of NSPathComponentCell or a subclass thereof. You cannot set this value to nil, but you can set it to an empty array using, for example, [NSArray array].

## 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)
- [clickedPathComponentCell](appkit/nspathcell/clickedpathcomponentcell.md)
