public bool ControlTextViewDoCommandBySelector(NSControl control, NSTextView textView, IntPtr commandSelector) { if (textView.RespondsToSelector(commandSelector)) { this.commandHandling = true; textView.PerformSelectorWithObject(commandSelector, null); this.commandHandling = false; } return true; }