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

# move(_:)

Moves the document to a new location in response to the user choosing the Move To… menu item.

```
@IBAction func move(_ sender: Any?)
```

## Parameters

`sender`

The control sending the message.

## Discussion

This is the action method of the Move To… menu item in a document-based app. By default, this method invokes the [`move(completionHandler:)`](/documentation/AppKit/NSDocument/move(completionHandler:)) method, passing `nil` as a parameter value.

---

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)