I have an NSPopUpButton
inside a trackingArea. Now when I open the PopUp and select an item, the mouseExited:
method gets called. Even if my mouse is still inside the trackingArea. I assume that that is because the NSMenu is a view itself and when I click the mouse it is not in the view with the tracking rect anymore.
How can i workaround this problem? Is there a way to set a tracking area on top of all views?
The tracking area I use:
NSUInteger options = NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow;
NSTrackingArea* trackingArea = [[NSTrackingArea alloc] initWithRect:rect options:options owner:self userInfo:nil];