문제

I've successfully added a NSStatusItem to the menu bar, showing an regular NSMenu.

Is it possible to capture a hover event on this and in that case, display a different menu?

도움이 되었습니까?

해결책

You need to create a new custom view, override method [NSView mouseEntered:] with [NSView addTrackingRect:...] and then set to the status item [NSStatusItem setView:]

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top