MonobjcMonobjc Documented Class Library
RespondsToSelector Method (aSelector)
NamespacesMonobjc.FoundationNSProxyRespondsToSelector(String)

Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message.

Original signature is '- (BOOL)respondsToSelector:(SEL)aSelector'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool RespondsToSelector(
	string aSelector
)
Public Overridable Function RespondsToSelector ( _
	aSelector As String _
) As Boolean
public:
virtual bool RespondsToSelector(
	String^ aSelector
)
Parameters
aSelector (String)
A selector that identifies a message.
Return Value
YES if the receiver implements or inherits a method that can respond to aSelector, otherwise NO.
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)