MonobjcMonobjc Documented Class Library
MenuHasKeyEquivalentForEventTargetAction Method (menu, event, target, action)
NamespacesMonobjc.AppKitINSMenuDelegateMenuHasKeyEquivalentForEventTargetAction(NSMenu, NSEvent, Id%, IntPtr%)

Invoked to allow the delegate to return the target and action for a key-down event.

Original signature is '- (BOOL)menuHasKeyEquivalent:(NSMenu *)menu forEvent:(NSEvent *)event target:(id *)target action:(SEL *)action'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
bool MenuHasKeyEquivalentForEventTargetAction(
	NSMenu menu,
	NSEvent event,
	out Id target,
	out IntPtr action
Function MenuHasKeyEquivalentForEventTargetAction ( _
	menu As NSMenu, _
	event As NSEvent, _
	<OutAttribute> ByRef target As Id, _
	<OutAttribute> ByRef action As IntPtr _
) As Boolean
bool MenuHasKeyEquivalentForEventTargetAction(
	NSMenu^ menu, 
	NSEvent^ event, 
	[OutAttribute] Id^% target, 
	[OutAttribute] IntPtr% action
menu (NSMenu)
The menu object sending the delegation message.
event (NSEvent)
An NSEvent object representing a key-down event.
target (Id%)
Return by reference the target object for the menu item that corresponds to the event. Specify nil to requests the menu's target.
action (IntPtr%)
Return by reference the action selector for the menu item that corresponds to the event.
Return Value
If there is a valid and enabled menu item that corresponds to this key-down even, return YES after specifying the target and action. Return NO if there are no items with that key equivalent or if the item is disabled.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)