When using drag and drop tracking areas not detected/defined

228 Views Asked by At

My problem is that when I'm dragging something in my view, my tracking areas are not detected.

I have a text and I've defined some tracking areas so that if I go over a specific part of the text I change his background. Now my problem is that tracking areas are not detected when i go over them while dragging something.

Is there any why to aloud tracking areas detection while using the drag and drop?

1

There are 1 best solutions below

1
On

IIRC you need to pass the NSTrackingEnabledDuringMouseDrag option to initWithRect:options:owner:userInfo:.