public override void MouseDown(NSEvent theEvent) { base.MouseDown(theEvent); CGPoint location = ConvertPointFromView(theEvent.LocationInWindow, null); if (textField.IsMouseInRect(location, textField.Frame) && sourcePad != null) { sourcePad.BringToFront(true); } }
bool InTextField(CGPoint location) { return(textField.IsMouseInRect(location, textField.Frame)); }