fredsco
fredsco

Reputation: 333

NSUserNotification() onclick in OS X

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.

Upvotes: 0

Views: 341

Answers (1)

mangerlahn
mangerlahn

Reputation: 4966

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

Upvotes: 2

Related Questions