---
title: "init(representedObject:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstreenode/init(representedobject:)"
---

# init(representedObject:)

Initializes a newly allocated tree node that represents the specified object.

## Declaration

```swift
init(representedObject modelObject: Any?)
```

## Parameters

- `modelObject`: The object the tree node represents.

## Return Value

Return Value An initialized tree node that represents modelObject.
