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

# mouseMoved(with:)

Informs the receiver that the mouse has moved.

```
func mouseMoved(with event: NSEvent)
```

## Parameters

`event`

An object encapsulating information about the mouse-moved event.

## Discussion

The default implementation simply passes this message to the next responder.

## See Also

[`acceptsMouseMovedEvents`](/documentation/AppKit/NSWindow/acceptsMouseMovedEvents)

A Boolean value that indicates whether the window accepts mouse-moved events.



---

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)