开发者

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

开发者 https://www.devze.com 2023-01-08 00:22 出处:网络
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 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

精彩评论

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