On Jun 19, 2017, at 20:17 , Gerriet M. Denkmann wrote:
>
> 1. if the cursor is initially NOT in the rect, the app does not get notified:
> Workaround: user moves cursor into the rect (not very good).
>
> 2. if the app is hidden under some other windows, it also does not get
macOS.
Some Cocoa app wants to know whether the cursor moved from any point to a point
outside of some rect.
Currently I use polling (which looks kind of inefficient).
I tried NSTrackingArea, but this does not work:
1. if the cursor is initially NOT in the rect, the app does not get notified: