---
title: Modal Panel Return Values
framework: appkit
role: collectionGroup
role_heading: API Collection
path: appkit/modal-panel-return-values
---

# Modal Panel Return Values

These constants define the possible return values for such methods as the runModal... methods of the NSOpenPanel class, which tell which button (OK or Cancel) the user has clicked on an open panel.

## Topics

### Constants

- [NSCancelButton](appkit/nscancelbutton.md)
- [NSOKButton](appkit/nsokbutton.md)

## See Also

### Constants

- [Alert Panel Return Values](appkit/alert-panel-return-values.md)
- [Style Masks](appkit/style-masks.md)
