NSUserNotification class is used to configure a notification that is scheduled for display by the
- macOS 10.8+
NSUserNotification object not only configures the notification, when the notification is delivered information about when the notification was actually presented to the user (if at all) and other details are provided in the notification object. User applications can create
NSUserNotification objects and register them with the
NSUserNotificationCenter object to notify the user when an application requires attention.
NSUserNotificationCenter for more information.
NSUserNotificationCenter class and the
NSUserNotification class are both thread safe.