<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTreeController/move(_:to:)-moi9",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTreeController(im)moveNodes:toIndexPath:"
  },
  "title" : "move(_:to:)"
}
-->

# move(_:to:)

Moves the specified tree nodes to the new index path.

```
func move(_ nodes: [NSTreeNode], to startingIndexPath: IndexPath)
```

## Parameters

`nodes`

An array of tree nodes.

`startingIndexPath`

An index path specifying the starting position to move the tree nodes to in the tree controller’s content.

## Discussion

---

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)