I'd like to detect the difference between close window and close tab so that I can diaplay an alert for command window to make sure the user wants to closee the wndow containing all of the tabs. This is a document based app.
I need to do this from the menu as well as from the window and tab close buttons.
I have tried using performClose but that isn't called from the window and tab close buttons and using windowShouldClose means I'd have to write some hacky code to tell if that method was being called on all the documents represented in tabs in my windows so I think that is too late.
Any pointers?