This seems like one of my previous questions that never got an answer. I would like the Dock icon to use the method makekeyandorderfrontto open the main window after closing it. I did this using the button that opens the window, but I donβt know how to do it using the Dock icon, because you cannot connect to it in the interface builder.
source
share