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

# mouseExited(with:)

Automatically sent to the receiver when the cursor exits a cursor rectangle owned by the receiver.

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

## Parameters

`event`

The event generated when the cursor exits the cursor rectangle.

## Discussion

Like [`mouseEntered(with:)`](/documentation/AppKit/NSCursor/mouseEntered(with:)), this message is part of the class interface only so you can override it.

For more information, see [`addTrackingRect(_:owner:userData:assumeInside:)`](/documentation/AppKit/NSView/addTrackingRect(_:owner:userData:assumeInside:)).

---

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)