Cocoa - Capturing NSStatusItem mouse hover event

944 Views Asked by At

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

1

There are 1 best solutions below

2
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:.