I am trying to modify the default behavior when clicking the icon of a running application in the dock. By default it brings the main window of the appl开发者_运维知识库ication to the foreground.
I would like to perform a custom operation when the icon is clicked.
Any idea to achieve this?
Implement applicationShouldHandleReopen:hasVisibleWindows: in the app delegate; see the explanation there.
精彩评论