MonobjcMonobjc Documented Class Library
TargetForActionToFrom Method (anAction, aTarget, sender)
NamespacesMonobjc.AppKitNSApplicationTargetForActionToFrom(IntPtr, Id, Id)

Finds an object that can receive the message specified by the given selector.

Original signature is '- (id)targetForAction:(SEL)anAction to:(id)aTarget from:(id)sender'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id TargetForActionToFrom(
	IntPtr anAction,
	Id aTarget,
	Id sender
)
Public Overridable Function TargetForActionToFrom ( _
	anAction As IntPtr, _
	aTarget As Id, _
	sender As Id _
) As Id
public:
virtual Id^ TargetForActionToFrom(
	IntPtr anAction, 
	Id^ aTarget, 
	Id^ sender
)
Parameters
anAction (IntPtr)
The desired action message.
aTarget (Id)
The first target object to check. Specify nil if you want the application to search the responder chain.
sender (Id)
The parameter to send to the action message.
Return Value
The object that can accept the specified action message or nil if no target object can receive the message. This method also returns nil if anAction is nil.
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)