---
title: uniqueID
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsevent/uniqueid
---

# uniqueID

The unique identifier of the pointing device that generated this event.

## Declaration

```swift
var uniqueID: UInt64 { get }
```

## Discussion

Discussion Also known as tool ID, this is a unique number recorded in the chip inside every pointing device. The unique ID makes it possible to assign a specific pointing device to a specific tablet. You can also use it to “sign” documents or to restrict access to document layers to a specific pointing device. This method is valid for mouse events with subtype NSTabletProximityEventSubtype and for NSTabletProximity events.

## See Also

### Related Documentation

- [vendorDefined](appkit/nsevent/vendordefined.md)

### Getting tablet proximity information

- [capabilityMask](appkit/nsevent/capabilitymask.md)
- [deviceID](appkit/nsevent/deviceid.md)
- [isEnteringProximity](appkit/nsevent/isenteringproximity.md)
- [pointingDeviceID](appkit/nsevent/pointingdeviceid.md)
- [pointingDeviceSerialNumber](appkit/nsevent/pointingdeviceserialnumber.md)
- [pointingDeviceType](appkit/nsevent/pointingdevicetype-swift.property.md)
- [NSEvent.PointingDeviceType](appkit/nsevent/pointingdevicetype-swift.enum.md)
- [systemTabletID](appkit/nsevent/systemtabletid.md)
- [tabletID](appkit/nsevent/tabletid.md)
- [vendorID](appkit/nsevent/vendorid.md)
- [vendorPointingDeviceType](appkit/nsevent/vendorpointingdevicetype.md)
