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

# tabletProximity(with:)

Informs the receiver that a tablet-proximity event has occurred.

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

## Parameters

`event`

An object encapsulating information about the tablet-point event.

## Discussion

Tablet events are represented by `NSEvent` objects of type [`NSTabletProximity`](/documentation/AppKit/NSTabletProximity). Tablet devices generate proximity events when the transducer (pointing device) nears a tablet and when it moves away from a tablet. From an event object of this type you can extract information about the kind of device and its capabilities, as well as the relation of this tablet-proximity event to various tablet-point events; see the [`NSEvent`](/documentation/AppKit/NSEvent) reference for details. The default implementation passes the message to the next responder.

---

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)