---
title: NSBeginCriticalAlertSheet
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsbegincriticalalertsheet
---

# NSBeginCriticalAlertSheet

Creates and runs a critical alert sheet.

## Declaration

```occ
extern void NSBeginCriticalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msgFormat, ...);
```

## Discussion

Discussion Creates and runs a critical alert sheet on docWindow, with the title of title, the text of msg, and buttons with titles of defaultButton, alternateButton, and otherButton. See the description of NSBeginAlertSheet for information on layout, default parameters, and the selectors. The sheet presented to the user is badged with a caution icon. Critical alerts should be used only as specified in the “Alerts” section of the UI Element Guidelines: Windows chapter of macOS Human Interface Guidelines.

## 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)
- [NSBeginInformationalAlertSheet](appkit/nsbegininformationalalertsheet.md)
- [NSGetAlertPanel](appkit/nsgetalertpanel.md)
- [NSGetCriticalAlertPanel](appkit/nsgetcriticalalertpanel.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)
