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

# performClick(_:)

Simulates a single mouse click on the receiver.

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

## Parameters

`sender`

The object requesting the action. This parameter is ignored.

## Discussion

This method calls the [`performClick(_:)`](/documentation/AppKit/NSCell/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.

---

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)