views:

35

answers:

1

hello,

I am trying to modify the default behavior of teh dock when you click on an icon of a started application. By default it bring the main window of the application to forefront. What I would like to be able to do is to be able to perform a custom operation when the icon is clicked.

Any idea to achieve this?

Thanks and regards,

AP

+2  A: 

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

Yuji
I could probably manage what I want to do with this. Thanks!
AP