Allows delegate to control the context menu returned by the text view.
Original signature is '- (NSMenu *)textView:(NSTextView *)view menu:(NSMenu *)menu forEvent:(NSEvent *)event atIndex:(NSUInteger)charIndex'
Available in Mac OS X v10.5 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public event NSTextView..::..TextViewMenuForEventAtIndexEventHandler TextViewMenuForEventAtIndex
Public Event TextViewMenuForEventAtIndex As NSTextView..::..TextViewMenuForEventAtIndexEventHandler
public: event NSTextView..::..TextViewMenuForEventAtIndexEventHandler^ TextViewMenuForEventAtIndex { void add (NSTextView..::..TextViewMenuForEventAtIndexEventHandler^ value); void remove (NSTextView..::..TextViewMenuForEventAtIndexEventHandler^ value); }
Return Value
A menu to use as the contextual menu. You can return menu unaltered, or you can return a customized menu.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)