public override NSCellHit HitTest(NSEvent forEvent, RectangleF inRect, NSView ofView) { PointF point = ofView.ConvertPointFromView(forEvent.LocationInWindow, null); if (_image != null) { RectangleF imageFrame; inRect.Divide(3 + _image.Size.Width, CGRectEdge.MinXEdge, out imageFrame, out inRect); imageFrame.X += 3; imageFrame.Size = _image.Size; if (ofView.MouseinRect(point, imageFrame)) { return(NSCellHit.ContentArea); } } return(base.HitTest(forEvent, inRect, ofView)); }