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

# performClick(withFrame:in:)

Displays the receiver’s menu and track mouse events in it.

```
func performClick(withFrame frame: NSRect, in controlView: NSView)
```

## Parameters

`frame`

The cell’s rectangle, specified in points in the coordinate system of the view in the `controlView` parameter.

`controlView`

The view in which to display the pop-up button’s menu.

## Discussion

You normally do not call this method explicitly. It is called by the Application Kit automatically to handle events in the pop-up button.

---

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)