开发者

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 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜