I want to register for time change notifications in mac os. usng C Api's. I tried the ApplicaitonEventHandler api which seemed to be the api for this case, but I am not getting notified for any events
code shared at,
https://gist.github.com/anonymous/a0b3e24e02b844bfb11e2b5d02e47d83
I registered for all possible event but triggering any of the event doesnt seem to create a notificaion for me.
I am using .mm extension as I want my code exposed as a c style api so and if I can interop with a private objective c class if possible (i.e if objective c object can be instantiated inside a c++ method and a suitable objective c api is available for such notifcations).
[Note] Used the NSNotification suggested below, it doesnt send any notifcations either.