开发者

cocoa: know the position of the app icon in the dock

I need to show a special menu when the dock icon is hovered. In order to do this I need to find a way to get the coordinate of the app icon in the dock.

Do you know h开发者_高级运维ow I can get this info?

Thanks and regards,


Expanding the answer of Mike Abdullah: have a start with http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/customizing_docktile/concepts/dockconcepts.html#//apple_ref/doc/uid/TP30000986-CH2-TPXREF103

Greetings


There is no public API for this. File a request asking for it. In the meantime don't attempt it. Look at a custom dock item menu instead.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜