Function

NSGetCriticalAlertPanel

Returns an alert panel to display a critical message.

Declaration

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. Critical alerts should be used only as specified in the "Alerts” section of the UI Element Guidelines: Windows chapter of macOS Human Interface Guidelines.

See Also

Views and Controls

NSForm

An NSForm object is a vertical matrix of NSFormCell objects to implement the fields.

Deprecated
NSFormCell

The NSFormCell class is used to implement text entry fields in a form. The left part of an NSFormCell object contains a title. The right part contains an editable text entry field.

NSMenuItemCell

An object that handles the measurement and display of a single menu item in its encompassing frame.

NSBeginAlertSheet

Creates and runs an alert sheet.

Deprecated
NSBeginCriticalAlertSheet

Creates and runs a critical alert sheet.

Deprecated
NSBeginInformationalAlertSheet

Creates and runs an informational alert sheet.

Deprecated
NSGetAlertPanel

Returns an alert panel.

Deprecated
NSGetInformationalAlertPanel

Returns an alert panel to display an informational message.

Deprecated
NSReleaseAlertPanel

Disposes of an alert panel.

Deprecated
NSRunAlertPanel

Creates an alert panel.

Deprecated
NSRunCriticalAlertPanel

Creates and runs a critical alert panel.

Deprecated
NSRunInformationalAlertPanel

Creates and runs an informational alert panel.

Deprecated
NSInputManagerDeprecated
NSInputServerDeprecated
NSDisableScreenUpdates

Disables screen updates.

Deprecated
NSEnableScreenUpdates

Enables screen updates.

Deprecated