LifeOS LifeOS - 1 year ago 199
Swift Question

NSUserNotification() MAC OSX Swift onclick

How can I make a notification clickable. I want that when a user clicks the notification on the mac, safari opens with the specified link.

Max Max
Answer Source

To respond to clicks on a userNotification object, you need to implement NSUserNotificationCenterDelegeate's userNotificationCenter:didActivateNotification: method.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download