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


I am trying to modify the default behavior when I click on an application's icon in the dock. By default, it brings the application's main window to the foreground.

When the icon is clicked, I would like to perform a custom operation.

Any ideas to get it?

implemented in app reps; See explanations there.


Comments