如何在任何應用程序提供或激活NSUserNotification
時通知我?Cocoa/NSUserNotificationCenter獲取所有NSUserNotification通知
- 無論是我能決定什麼,通過
NSDistributedNotificationCenter
發送, - 也沒有我能找到一個面具一樣
NSUserNotificationDeliveredMask
[假名字]我可以註冊一個全球[NSEvent addGlobalMonitorForEventsMatchingMask]
, - 也沒有,似乎有一個適合默認用戶通知中心對象的觀察者。
[NSUserNotificationCenter defaultCenter]
及其委託人只在我自己的應用程序發送通知時通知我。