objective c - Getting notification list from OS X Notification Center -
it's possible send notifications notification center on mac using nsusernotification , nsusernotificationcenter api classes.
but there any way of reading notifications notification center?
there no public api that. nothing app store conform.
but
as part of little tech-demo-app disconotifier (where flash keyboard leds in response notification) wrote ddusernotificationcentermonitor class
see: https://github.com/daij-djan/disconotifier/tree/master/disconotifier
it works using filesystemevents , sqlite , checks notification center's database
it works , database has info (table: presented_notifications) but.. fragile , private
Comments
Post a Comment