How can I know NSWindow was closed using the close button ?

Viewed 3526

Is there an easy way to know when a NSWindow was closed using the close button (of the window title bar) .

Using NSWindowDelegate and the windowWillClose:(NSNotification *)notification method I get notification of each closing. But how can I know the closing request was send by the close button

1 Answers
Related