---
title: "touchesCancelled(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsgesturerecognizer/touchescancelled(with:)"
---

# touchesCancelled(with:)

Called when a system event, such as a low-memory warning, cancels an in-progress touch event in an NSTouchBar object.

## Declaration

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

## See Also

### Instance Methods

- [touchesBegan(with:)](appkit/nsgesturerecognizer/touchesbegan(with:).md)
- [touchesEnded(with:)](appkit/nsgesturerecognizer/touchesended(with:).md)
- [touchesMoved(with:)](appkit/nsgesturerecognizer/touchesmoved(with:).md)
