<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAlert/Style",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSAlertStyle"
  },
  "title" : "NSAlert.Style"
}
-->

# NSAlert.Style

The set of alert styles to style alerts in your app.

```
enum Style
```

## Overview

Currently, there’s no visual difference between informational and warning alerts. You should only use the critical (or “caution”) alert style if warranted. For design guidance on alert styles, see [Human Interface Guidelines > Alerts](https://developer.apple.com/design/human-interface-guidelines/alerts#macOS). The default alert style is [`NSAlert.Style.warning`](/documentation/AppKit/NSAlert/Style/warning).

## Topics

### Enumeration Cases

[`NSAlert.Style.critical`](/documentation/AppKit/NSAlert/Style/critical)

An alert style to inform someone about a critical event.

[`NSAlert.Style.warning`](/documentation/AppKit/NSAlert/Style/warning)

An alert style to warn someone about a current or impending event.

[`NSAlert.Style.informational`](/documentation/AppKit/NSAlert/Style/informational)

An alert style to inform someone about a current or impending event.

### Deprecated Symbols

[`NSCriticalAlertStyle`](/documentation/AppKit/NSCriticalAlertStyle)

[`NSWarningAlertStyle`](/documentation/AppKit/NSWarningAlertStyle)

An alert used to warn the user about a current or impending event. The purpose is more than informational but not critical. This is the default alert style.

[`NSInformationalAlertStyle`](/documentation/AppKit/NSInformationalAlertStyle)

An alert used to inform the user about a current or impending event.



---

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)