---
title: "performClick(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscontrol/performclick(_:)"
---

# performClick(_:)

Simulates a single mouse click on the receiver.

## Declaration

```swift
func performClick(_ sender: Any?)
```

## Parameters

- `sender`: The object requesting the action. This parameter is ignored.

## Discussion

Discussion This method calls the performClick(_:) method of the receiver’s cell with the sender being the control itself. This method raises an exception if the action message cannot be successfully sent.

## See Also

### Activating from the Keyboard

- [refusesFirstResponder](appkit/nscontrol/refusesfirstresponder.md)
