简体   繁体   English

在OS X中单击NSUserNotification()

[英]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. 我希望当用户单击Mac上的通知时,Safari打开并显示指定的链接。

要响应对userNotification对象的单击,您需要实现NSUserNotificationCenterDelegeateuserNotificationCenter:didActivateNotification:方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM