MonobjcMonobjc Documented Class Library
MethodForSelector Method (aSelector)
NamespacesMonobjc.FoundationNSObjectMethodForSelector(IntPtr)

Locates and returns the address of the receiver’s implementation of a method so it can be called as a function.

Original signature is '- (IMP)methodForSelector:(SEL)aSelector'

Available in Mac OS X v10.0 and later.

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