Reputation: 5323
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 application to the foreground.
I would like to perform a custom operation when the icon is clicked.
Any idea to achieve this?
Upvotes: 1
Views: 680
Reputation: 34185
Implement applicationShouldHandleReopen:hasVisibleWindows: in the app delegate; see the explanation there.
Upvotes: 2