---
title: dismissPopUp()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nspopupbuttoncell/dismisspopup()
---

# dismissPopUp()

Dismisses the pop-up button’s menu by ordering its window out.

## Declaration

```swift
func dismissPopUp()
```

## Discussion

Discussion If the pop-up button was not displaying its menu, this method does nothing. You normally do not call this method explicitly. It is called by the Application Kit automatically to dismiss the menu for the pop-up button.

## See Also

### Related Documentation

- [orderOut(_:)](appkit/nswindow/orderout(_:).md)

### Handling events and action messages

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