开发者

Finding out if a Window is being Dragged

I am trying to write a program that requires to know if a window is being dragged (moved around). The catch is that it's not the program's window, but rather any window in the OS (eg. Safari, iTunes, Adium, TextMate, etc.), and what program it belongs to

I was thinking AppleScript would开发者_开发技巧 be a potential way to do this, but there doesn't seem to be anyway to know whether it's being dragged.

Any ideas?


On window will resize handler or window will move handler. I'm not sure if those are the exact names but you can find them in the Window section of the Applescript section in the inspect window in Interface Builder.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜