NSView mouseEntered / mouseMoved is not called during a drag operation (and vice versa)

I have a borderless window with transparent NSView. When the mouse cursor enters a transparent view, it is assumed that a second view appears (drop target), allowing the user to drop the file.

The problem is that draggingEntered:it is not called when dragging the file over the transparent view (so that the target view never appears).

In the transparent view, the tracking zone is correctly configured. If you do not drag the file (i.e., Normal mouse movements), the transparent view works correctly for mouseEntered:and events mouseMoved:.

There seems to be a problem with the chicken and the egg:

I need draggingEntered:to run a transparent view, or I need to mouseEntered:call when dragging a file to show a view of the target.

Any ideas how to solve this?

+5
source share

All Articles