阅读背景:

如何在Mac OS X中获取相对于窗口的光标位置?

来源:互联网 

I can use [NSEvent mouseLocation] to get the cursor's location, but this gives me the screen coordinates. How do I get the coordinates of the cursor relative to the view, when it is in it? I searched the Apple documentation and couldn't find an answer. to get the cu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: