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

# NSAlert.Style.warning

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

```
case warning
```

## Discussion

Use this style of alert when the alert’s content is more severe than [`NSAlert.Style.informational`](/documentation/AppKit/NSAlert/Style/informational) but less severe than [`NSAlert.Style.critical`](/documentation/AppKit/NSAlert/Style/critical). This is the default alert style.

---

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)