---
title: childrenKeyPath
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstreecontroller/childrenkeypath
---

# childrenKeyPath

The key path used to find the children in the tree controller’s objects.

## Declaration

```swift
var childrenKeyPath: String? { get set }
```

## Discussion

Discussion The default value of this property is nil.

## See Also

### Specifying model attributes

- [childrenKeyPath(for:)](appkit/nstreecontroller/childrenkeypath(for:).md)
- [countKeyPath](appkit/nstreecontroller/countkeypath.md)
- [countKeyPath(for:)](appkit/nstreecontroller/countkeypath(for:).md)
- [leafKeyPath](appkit/nstreecontroller/leafkeypath.md)
- [leafKeyPath(for:)](appkit/nstreecontroller/leafkeypath(for:).md)
