---
title: "cursorUpdate(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsresponder/cursorupdate(with:)"
---

# cursorUpdate(with:)

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

## Declaration

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

## Parameters

- `event`: An object encapsulating information about the cursor-update event (doc://com.apple.appkit/documentation/AppKit/NSCursorUpdate).

## Discussion

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.

## See Also

### Responding to Other Kinds of Events

- [flagsChanged(with:)](appkit/nsresponder/flagschanged(with:).md)
- [tabletPoint(with:)](appkit/nsresponder/tabletpoint(with:).md)
- [tabletProximity(with:)](appkit/nsresponder/tabletproximity(with:).md)
- [helpRequested(_:)](appkit/nsresponder/helprequested(_:).md)
- [scrollWheel(with:)](appkit/nsresponder/scrollwheel(with:).md)
- [quickLook(with:)](appkit/nsresponder/quicklook(with:).md)
- [changeMode(with:)](appkit/nsresponder/changemode(with:).md)
