In Cocoa on the Mac, I'd like to detect when a window belonging to another app is closed. How can I do this?
I only know how to detect other window's resize or minilize using
AXObserverAddNotification(observer,application,kAXWindowMiniaturizedNotification, nil);
AXObserverAddNotification(observer, application, kAXWindowResizedNotification, nil);
But I don't find notification like kAXWindowClosedNotification
.