| I've got a floating compositing window I load from a NIB populated with a bunch of bevel buttons, a static text field, and a separator. For contextual menu support, I installed a kEventControlContextualMenuClick handler to the content view. When I right click on the window, if my click lands on the static text control, separator, or window, my contextual menu appears in the correct place. But if I right click on a bevel button, my contextual menu appears in the wrong place. After some debugging, it appears that even though I installed my contextual menu handler on the content view, the kEventParamDirectObject I get back is whatever control I right clicked on. And right clicking on a bevel button returns a point relative to the bevel button, not the content view (even though the other controls are handled properly). Is this normal?
I guess I can look at the control I get back and fix the point if it's a bevel button but I want to confirm that it's a bug. |