I would like the Dock Icon to use the method makekeyandorderfront to open the Main window after it has been closed. I have done this with a button opening a Window but I don’t know how to do it with the Dock Icon because you can’t make a connection to it in interface builder.
I would like the Dock Icon to use the method makekeyandorderfront to open the
Share
There’s a delegate method in NSApplication’s delegate:
which you can use to handle clicks on the app’s icon in the dock. See its documentation.