开发者

Cocoa - Capturing NSStatusItem mouse hover event

开发者 https://www.devze.com 2023-02-13 03:53 出处:网络
How do I开发者_JS百科 execute a function when a user\'s mouse hovers over my NSStatusItem?If you assign a custom NSView to your NSStatusItem\'s view property, you can override the NSResponder methods

How do I开发者_JS百科 execute a function when a user's mouse hovers over my NSStatusItem?


If you assign a custom NSView to your NSStatusItem's view property, you can override the NSResponder methods mouseEntered:, mouseMoved: and mouseExited:.

0

精彩评论

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

关注公众号