Enumeration

Alert Panel Return Values

These constants define values returned by the NSRunAlertPanel function and by the NSApplication method runModalSession: when the modal session is run with an NSPanel provided by the NSGetAlertPanel function.

Declaration

enum : int {
    ...
};

Topics

Constants

NSAlertDefaultReturn

The user pressed the default button.

Deprecated
NSAlertAlternateReturn

The user pressed the alternate button.

Deprecated
NSAlertOtherReturn

The user pressed a second alternate button.

Deprecated
NSAlertErrorReturn

The alert cannot identify the reason it was closed; it may have been closed by an external source or by a button other than those listed above.

Deprecated