Returns an initialized alert.


- init

Return Value

An initialized alert.


Unless you must maintain compatibility with existing alert-processing code that uses the function-based API, you should allocate (alloc) and initialize (init) the alert object, and then set its attributes using the appropriate methods of the NSAlert class.

See Also

Creating Alerts

+ alertWithError:

Returns an alert initialized from information in an error object.

+ alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:

Creates an alert compatible with alerts created using the NSRunAlertPanel function for display as a warning-style alert.