---
title: "touches(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsevent/touches(for:)"
---

# touches(for:)

Returns the touch objects from the event that belong to the specified view.

## Declaration

```swift
func touches(for view: NSView) -> Set<NSTouch>
```

## Parameters

- `view`: The view in which the touches originally occurred.

## Return Value

Return Value A set of NSTouch objects that correspond to the touches in the view.

## 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)
- [allTouches()](appkit/nsevent/alltouches().md)
- [coalescedTouches(for:)](appkit/nsevent/coalescedtouches(for:).md)
- [isMouseCoalescingEnabled](appkit/nsevent/ismousecoalescingenabled.md)
- [NSEvent.GestureAxis](appkit/nsevent/gestureaxis.md)
