Displays a user notification dialog that does not need a user response.
- macOS 10.0+
- Core Foundation
The amount of time to wait for the user to dismiss the notification dialog before the dialog dismisses itself. Pass
0to have the dialog never time out.
A file URL pointing to the icon to display in the dialog. If
NULL, a default icon is used based on the notification’s alert level specified in
A file URL pointing to a bundle that contains localized versions of the strings displayed in the dialog. Can be
The title of the notification dialog. Cannot be
The message string to display in the dialog. Can be
The title of the default button. If
NULL, the string
0 if the cancel was successful; a non-
0 value otherwise.
This function returns immediately. It does not wait for a user response after displaying the dialog.