There is a difference in how control clicks and right-clicks are handled by NSView (as jfewtr pointed out). Context menus will appear for the right mouse button if a click gets into the preview, but not for the control .
: NSView control-click quirks
, / , , . , , ( NSBox) :
- (void)mouseDown:(NSEvent *)theEvent
{
if (theEvent.modifierFlags & NSControlKeyMask)
{
[NSMenu popUpContextMenu:[self menuForEvent:theEvent] withEvent:theEvent forView:self];
}
}
, , /.