<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEvent/touches(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSEvent(im)touchesForView:"
  },
  "title" : "touches(for:)"
}
-->

# touches(for:)

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

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

## Parameters

`view`

The view in which the touches originally occurred.

## Return Value

A set of [`NSTouch`](/documentation/AppKit/NSTouch) objects that correspond to the touches in the view.

---

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)