Sent to the delegate when a user clicks on a user notification presented by the user notification center.
- macOS 10.8+
The user notification center.
The user notification object.
This would be a good time to take action in response to user interacting with a specific notification.
To take an action when your application is launched as a result of a user clicking on a notification, be sure to implement the
application method in the application class that implements the
NSApplication protocol. The notification parameter to that method has a
user dictionary, and if that dictionary has the
NSApplication key. The value of that key is the
NSUser object that caused the application to launch. The
NSUser object is delivered to the
NSApplication delegate because that message will be sent before your application has a chance to set a delegate for the