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

# cursorUpdate(with:)

Informs the receiver that the mouse cursor has moved into a cursor rectangle.

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

## Parameters

`event`

An object encapsulating information about the cursor-update event ([`NSCursorUpdate`](/documentation/AppKit/NSCursorUpdate)).

## Discussion

Override this method to set the cursor image. The default implementation uses cursor rectangles, if cursor rectangles are currently valid.  If they are not, it calls `super` to send the message up the responder chain.

If the responder implements this method, but decides not to handle a particular event, it should invoke the superclass implementation of this method.

---

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)