Domanda

How do I execute a function when a user's mouse hovers over my NSStatusItem?

È stato utile?

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
scroll top