MonobjcMonobjc Documented Class Library
InstanceMethodForSelector Method (aSelector)
NamespacesMonobjc.FoundationNSObjectInstanceMethodForSelector(IntPtr)

Locates and returns the address of the implementation of the instance method identified by a given selector.

Original signature is '+ (IMP)instanceMethodForSelector:(SEL)aSelector'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr InstanceMethodForSelector(
	IntPtr aSelector
)
Public Shared Function InstanceMethodForSelector ( _
	aSelector As IntPtr _
) As IntPtr
public:
static IntPtr InstanceMethodForSelector(
	IntPtr aSelector
)
Parameters
aSelector (IntPtr)
A selector that identifies the method for which to return the implementation address. The selector must be non-NULL and valid for the receiver. If in doubt, use the respondsToSelector: method to check before passing the selector to methodForSelector:.
Return Value
The address of the implementation of the aSelector instance method.
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.Foundation (Module: Monobjc.Foundation)