AP.
AP.

Reputation: 5323

Custom behavior when clicking application icon in the Mac OS X dock

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

Answers (1)

Yuji
Yuji

Reputation: 34185

Implement applicationShouldHandleReopen:hasVisibleWindows: in the app delegate; see the explanation there.

Upvotes: 2

Related Questions