---
title: "performClick(withFrame:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspopupbuttoncell/performclick(withframe:in:)"
---

# performClick(withFrame:in:)

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

## Declaration

```swift
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

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.

## See Also

### Handling events and action messages

- [attachPopUp(withFrame:in:)](appkit/nspopupbuttoncell/attachpopup(withframe:in:).md)
- [dismissPopUp()](appkit/nspopupbuttoncell/dismisspopup().md)
