cocoa - How do you make the Application window open when the dock icon is clicked? -
I'm surprised that it does not happen automatically, but I would like to open my application window automatically when the dock The icon is clicked.
Just to make it clear, when I open the app, the window opens automatically, but when I click on the cross for the window, but I leave the app running, the window will open when I I'll click on the dock icon.
Apply - (BOOL) Application styleholder in your app representative. Check the documentation for return value details.
Document based applications and non-document based applications behave a little differently if there are no open windows, the doc icon of the document based app is clicked, it will create a new document . If there are no open windows, when the dock icon of a non-document based app is clicked, it will not do anything.
Comments
Post a Comment