Re: Cursor outside Rect without polling

2017-06-19 Thread Quincey Morris
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

Cursor outside Rect without polling

2017-06-19 Thread Gerriet M. Denkmann
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: