开发者

NSWindow mouse events

开发者 https://www.devze.com 2023-02-23 15:30 出处:网络
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:

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

精彩评论

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