---
title: allTouches()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsevent/alltouches()
---

# allTouches()

Returns all touch objects associated with the event.

## Declaration

```swift
func allTouches() -> Set<NSTouch>
```

## Return Value

Return Value A set of NSTouch objects that correspond to the touches of this event.

## Discussion

Discussion If the touches originate in different views or windows, each NSTouch object may have a different responder object.

## See Also

### Getting gesture and touch information

- [phase](appkit/nsevent/phase-swift.property.md)
- [NSEvent.Phase](appkit/nsevent/phase-swift.struct.md)
- [magnification](appkit/nsevent/magnification.md)
- [touches(matching:in:)](appkit/nsevent/touches(matching:in:).md)
- [touches(for:)](appkit/nsevent/touches(for:).md)
- [coalescedTouches(for:)](appkit/nsevent/coalescedtouches(for:).md)
- [isMouseCoalescingEnabled](appkit/nsevent/ismousecoalescingenabled.md)
- [NSEvent.GestureAxis](appkit/nsevent/gestureaxis.md)
