Instance Method
インスタンスメソッド
methodSignatureForSelector:
Returns an NSMethodSignature
object that contains a description of the method identified by a given selector.
Technology
- Objective-C Runtime
Objective-Cランタイム
Parameters
パラメータ
aSelector
A Selector that identifies the method for which to return the implementation address. When the receiver is an instance, aSelector
should identify an instance method; when the receiver is a class, it should identify a class method.
Return Value
戻り値
An NSMethodSignature
object that contains a description of the method identified by aSelector
, or nil
if the method can’t be found.
Discussion
解説
This method is used in the implementation of protocols. This method is also used in situations where an NSInvocation
object must be created, such as during message forwarding. If your object maintains a delegate or is capable of handling messages that it does not directly implement, you should override this method to return an appropriate method signature.
See Also
参照
Obtaining Information About Methods
メソッドについての情報の取得
- methodForSelector:
Locates and returns the address of the receiver’s implementation of a method so it can be called as a function.
あるメソッドのこのレシーバの持つ実装の所在(アドレス)を突き止めて返します、それでそれは関数として呼び出し可能です。
+ instanceMethodForSelector:
Locates and returns the address of the implementation of the instance method identified by a given selector.
指定されたセレクタによって識別されるインスタンスメソッドの実装の所在(アドレス)を突き止めて返します。
Related Documentation
関連文書
- forwardInvocation:
Overridden by subclasses to forward messages to other objects.
これは、メッセージを別のオブジェクトへ転送するためにサブクラスによってオーバーライドされます。