Invoked when users press keys with predefined bindings in a cell of the specified control.
Original signature is '- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public delegate bool ControlTextViewDoCommandBySelectorEventHandler( NSControl control, NSTextView textView, IntPtr command )
Public Delegate Function ControlTextViewDoCommandBySelectorEventHandler ( _ control As NSControl, _ textView As NSTextView, _ command As IntPtr _ ) As Boolean
public delegate bool ControlTextViewDoCommandBySelectorEventHandler( NSControl^ control, NSTextView^ textView, IntPtr command )

- control (NSControl)
- The control whose cell initiated the message. If the control contains multiple cells, the one that initiated the message is usually the selected cell.
- textView (NSTextView)
- The field editor of the control.
- command (IntPtr)
- The selector that was associated with the binding.

YES if the delegate object handles the key binding; otherwise, NO.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)