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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -