Type Method 型メソッド

instancesRespondToSelector:

Returns a Boolean value that indicates whether instances of the receiver are capable of responding to a given selector. レシーバのインスタンスが指定したセレクタに応答する能力があるかどうかを指し示すブール値を返します。

Declaration 宣言

+ (BOOL)instancesRespondToSelector:(SEL)aSelector;

Parameters パラメータ

aSelector

Return Value 戻り値

YES if instances of the receiver are capable of responding to aSelector messages, otherwise NO.

Discussion 解説

If aSelector messages are forwarded to other objects, instances of the class are able to receive those messages without error even though this method returns NO.

To ask the class whether it, rather than its instances, can respond to a particular message, send to the class instead the NSObject protocol instance method respondsToSelector:.

See Also 参照

Related Documentation 関連文書