Cocoa - Capturing NSStatusItem mouse hover event
-
21-12-2020 - |
Domanda
How do I execute a function when a user's mouse hovers over my NSStatusItem?
Soluzione
If you assign a custom NSView
to your NSStatusItem
's view
property, you can override the NSResponder
methods mouseEntered:
, mouseMoved:
and mouseExited:
.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow