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

# NSGetInformationalAlertPanel

Returns an alert panel to display an informational message.

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

## 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(_:)`](/documentation/AppKit/NSReleaseAlertPanel(_:)).

The arguments for this function are the same as those for the [`NSRunAlertPanel`](/documentation/AppKit/NSRunAlertPanel) function. For more information on using a panel in a modal session, see [`NSGetAlertPanel`](/documentation/AppKit/NSGetAlertPanel).

---

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)