I have some window which in turn contains an NSView, v1 . The view can receive events from mouse, like Mouse Down, Enter, Exit and so on. The view can be overlapped by other view ( v2 ) (modal window not involved). I want to be able receive events Enter/Exit in v1 when the mouse is over visible part of v1 , and ignore those events when the mouse is over hidden region.
How? Enlighten me, please.
最终,在我的案例中,解决方案非常简单:NSTrackingArea的选项应包括NSTrackingInVisibleRect
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.