开发者

NSWindow mouse events

How can I get mouse events f开发者_运维问答or NSWindow? I want to know when a use hovers over a window and clicks a window. Thanks.


Use the following methods:

- (void)mouseDown:(NSEvent *)theEvent {

}

- (void)mouseUp:(NSEvent *)theEvent {

}

- (void)mouseMoved:(NSEvent *)theEvent {

}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜