---
title: NSRunCriticalAlertPanel
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsruncriticalalertpanel
---

# NSRunCriticalAlertPanel

Creates and runs a critical alert panel.

## Declaration

```occ
extern NSInteger NSRunCriticalAlertPanel(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);
```

## Discussion

Discussion Creates a critical alert panel that warns the user of some critical consequence of a requested action; the panel lets the user cancel the action and may allow the user to modify the action. It then runs the panel in a modal event loop. The panel presented to the user is badged with a caution icon. For more information on using alerts, see Human Interface Guidelines > Alerts. The arguments for this function are the same as those for NSRunAlertPanel.

## See Also

### Functions

- [NSConvertGlyphsToPackedGlyphs(_:_:_:_:)](appkit/nsconvertglyphstopackedglyphs(_:_:_:_:).md)
- [NSOpenGLGetOption](appkit/nsopenglgetoption.md)
- [NSOpenGLGetVersion](appkit/nsopenglgetversion.md)
- [NSOpenGLSetOption](appkit/nsopenglsetoption.md)
- [raiseBadArgumentException(_:_:_:)](appkit/nsaccessibility-swift.struct/raisebadargumentexception(_:_:_:).md)
- [NSBeginAlertSheet](appkit/nsbeginalertsheet.md)
- [NSBeginCriticalAlertSheet](appkit/nsbegincriticalalertsheet.md)
- [NSBeginInformationalAlertSheet](appkit/nsbegininformationalalertsheet.md)
- [NSGetAlertPanel](appkit/nsgetalertpanel.md)
- [NSGetCriticalAlertPanel](appkit/nsgetcriticalalertpanel.md)
- [NSGetInformationalAlertPanel](appkit/nsgetinformationalalertpanel.md)
- [NSReleaseAlertPanel(_:)](appkit/nsreleasealertpanel(_:).md)
- [NSRunAlertPanel](appkit/nsrunalertpanel.md)
- [NSRunInformationalAlertPanel](appkit/nsruninformationalalertpanel.md)
- [NSRunAlertPanelRelativeToWindow](appkit/nsrunalertpanelrelativetowindow.md)
