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

# Alert Panel Return Values

These constants define values returned by the NSRunAlertPanel function and by the NSApplication method runModalSession(_:) when the modal session is run with an NSPanel provided by the NSGetAlertPanel function.

## Topics

### Constants

- [NSAlertDefaultReturn](appkit/nsalertdefaultreturn.md)
- [NSAlertAlternateReturn](appkit/nsalertalternatereturn.md)
- [NSAlertOtherReturn](appkit/nsalertotherreturn.md)
- [NSAlertErrorReturn](appkit/nsalerterrorreturn.md)

## See Also

### Constants

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