开发者

Determine the window under the cursor

Press Cmd + Shift + 4 + Space and start roaming around the screen. It determines which window I'm over and highlights it. I suppose it asks every window about its size and position. How to do the same thing from my own Cocoa app? Determine the window under t开发者_StackOverflowhe cursor and ask about its different parameters? Thanks.


You're looking for the Quartz Window Services (CGWindow) API, specifically the function CGWindowListCopyWindowInfo().

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜