NSTrackingArea works weird - Entire View, or nothing… no rectangles respected

后端 未结 2 789
野的像风
野的像风 2021-01-15 22:05

In my \"InitWithFrame\" method of a view I\'m setting a tracking area for which I want to capture mouse enter/exit events.
My problems are two fold:

  1. Withou
2条回答
  •  迷失自我
    2021-01-15 22:16

    Straight from the docs for NSTrackingInVisibleRect:

    The NSTrackingArea object is automatically synchronized with changes in the view’s visible area (visibleRect) and the value returned from rect is ignored.

提交回复
热议问题