12.9 Panels

These functions provide a convenient way to display common alert panels and sheets. These functions let us create panels or sheets for informational purposes, to inform the user of an alert, and to inform the user of a critical alert.

NSBeginAlertSheet

void NSBeginAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...)

NSBeginCriticalAlertSheet

void NSBeginCriticalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...)

NSBeginInformationalAlertSheet

void NSBeginInformationalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...);

NSGetAlertPanel

id NSGetAlertPanel(NSString *title, NSString *msg, NSString *default-Button, NSString *alternateButton, NSString *otherButton, ...)

NSGetCriticalAlertPanel

id NSGetCriticalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...)

NSGetInformationalAlertPanel

id NSGetInformationalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...)

NSReleaseAlertPanel

void NSReleaseAlertPanel(id alertPanel)

NSRunAlertPanel

int NSRunAlertPanel(NSString *title, NSString *msg, NSString *default-Button, NSString *alternateButton, NSString *otherButton, ...)

NSRunCriticalAlertPanel

int NSRunCriticalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...)

NSRunInformationalAlertPanel

int NSRunInformationalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...)



    Part II: API Quick Reference
    Chapter 13. Foundation Classes