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

# touchesCancelled(with:)

Informs the receiver that tracking of touches has been cancelled for any reason.

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

## Parameters

`event`

An event object representing the cancellation of a touch event.

## Discussion

The event will be sent to the view under the touch in the key window.

---

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)