Contents

NSGetCriticalAlertPanel

Returns an alert panel to display a critical message.

Declaration

extern id NSGetCriticalAlertPanel(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(_:).

The arguments for this function are the same as those for the NSGetAlertPanel. For more information on using a panel in a modal session, see NSGetAlertPanel.

The panel presented to the user is badged with a caution icon. For more information on using alerts, see Human Interface Guidelines > Alerts.

See Also

Functions