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

# touchesBegan(with:)

Informs the receiver that new set of touches has been recognized.

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

## Parameters

`event`

An event object representing the beginning of a touch.

## Discussion

The system sends the event to the view under the touch in the key window. To get the set of touches that began for this view (or descendants of this view) call [`touches(matching:in:)`](/documentation/AppKit/NSEvent/touches(matching:in:)) on `event` and pass [`began`](/documentation/AppKit/NSTouch/Phase-swift.struct/began) for the phase send.

This isn’t always the point of contact with the touch device. A touch that transitions from resting to active may be part of a [`touchesBegan(with:)`](/documentation/AppKit/NSResponder/touchesBegan(with:)) set.

---

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)