Cocoa - Capturing NSStatusItem mouse hover event

930 views Asked by At

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

1

There are 1 answers

2
Douwe Maan On BEST ANSWER

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