I have a NSView with nested NSView's if I'm not dragging mouse events get triggered on all subviews using NSTracking area...fine.
But when I drag from a parent NSView over a child NSView, the mouse events are not fired and then only way I get them to respond to events is by hacking and it feels dirty.
NSView *hit = [self findViewUnderPoint:loc];
if (hit != nil)
{
if (hit != last)
{
[last mouseExited:event]; // This looks terrible to me
} else {
[hit mouseEntered:event]; // This looks terrible to me
}
last = hit;
}
If you comment out the code above, the sub-view events are not triggered, if you leave it in they are...but I'm calling them directly.
I've uploaded a video showing you how it works first, then with dragging (with my hacks) - I've also included my source code.
I'm ideally after "the right way" of doing this
https://www.dropbox.com/s/b6ps8tz0jvg2gwy/Designable.zip?dl=0