---
title: NSGetCriticalAlertPanel
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsgetcriticalalertpanel
---

# NSGetCriticalAlertPanel

Returns an alert panel to display a critical message.

## Declaration

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

## Discussion

Discussion Returns an NSPanel that can be used to set up a modal session. No button is displayed if defaultButton is nil. When you’re finished with the panel created by this function, you must dispose of it by passing it to NSReleaseAlertPanel(_:). The arguments for this function are the same as those for the NSGetAlertPanel. For more information on using a panel in a modal session, see NSGetAlertPanel. The panel presented to the user is badged with a caution icon. For more information on using alerts, see Human Interface Guidelines > Alerts.

## 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)
- [NSGetInformationalAlertPanel](appkit/nsgetinformationalalertpanel.md)
- [NSReleaseAlertPanel(_:)](appkit/nsreleasealertpanel(_:).md)
- [NSRunAlertPanel](appkit/nsrunalertpanel.md)
- [NSRunCriticalAlertPanel](appkit/nsruncriticalalertpanel.md)
- [NSRunInformationalAlertPanel](appkit/nsruninformationalalertpanel.md)
- [NSRunAlertPanelRelativeToWindow](appkit/nsrunalertpanelrelativetowindow.md)
