<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRunCriticalAlertPanel",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@F@NSRunCriticalAlertPanel"
  },
  "title" : "NSRunCriticalAlertPanel"
}
-->

# NSRunCriticalAlertPanel

Creates and runs a critical alert panel.

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

## 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 > <doc://com.apple.documentation/design/Human-Interface-Guidelines/alerts>.

The arguments for this function are the same as those for [`NSRunAlertPanel`](/documentation/AppKit/NSRunAlertPanel).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)