I need to find the way to respond to notification centre being closed/hidden. The reason is that I have a pop up NSMenu
in that widget, and if you open it and then close entire notification centre, pop up menu remains on the screen.
I have already tried to implement NSWindowDelegate
but there is no such event that defines closing of today widget centre. The closest things I found are -windowDidMiniaturize:
and
-windowWillClose:
. But when side bar closes they are not invoked.