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

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


Use [yourWindow standardWindowButton:NSWindowCloseButton] to find the close button, then change its target and action to a custom method.

Need Your Help

SSL error SSL_ERROR_SYSCALL in C++ application

c++ networking ssl openssl

in my c++ application I'm using open ssl in my networking functions.

ISA Relationship in DBMS

database database-design relational-database

I am reading Introduction to database managements system written by Ramakrishnan, and there i faced the following ER diagram: