MonobjcMonobjc Documented Class Library
TargetForAction Method (aSelector)

Returns the object that receives the action message specified by the given selector

Original signature is '- (id)targetForAction:(SEL)aSelector'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id TargetForAction(
	IntPtr aSelector
Public Overridable Function TargetForAction ( _
	aSelector As IntPtr _
) As Id
virtual Id^ TargetForAction(
	IntPtr aSelector
aSelector (IntPtr)
The desired action message.
Return Value
The object that would receive the specified action message or nil if no target object would receive the message. This method also returns nil if aSelector 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)