Instance Method
インスタンスメソッド
perform(_:with:with:)
Sends a message to the receiver with two objects as arguments.
Required.
必須。
Technology
- Objective-C Runtime
Objective-Cランタイム
Declaration
宣言
func perform(_ aSelector: Selector
!,
with object1: Any!,
with object2: Any!) -> Unmanaged
<AnyObject>!
Parameters
パラメータ
aSelector
A selector identifying the message to send. If aSelector
is NULL
, an invalidArgumentException
is raised.
anObject
An object that is the first argument of the message.
anotherObject
An object that is the second argument of the message
Return Value
戻り値
An object that is the result of the message.
Discussion
解説
This method is the same as perform(_:)
except that you can supply two arguments for aSelector
. aSelector
should identify a method that can take two arguments of type id. For methods with other argument types and return values, use NSInvocation
.
See Also
参照
Related Documentation
関連文書
func method(for: Selector!) -> IMP!
Locates and returns the address of the receiver’s implementation of a method so it can be called as a function.
あるメソッドのこのレシーバの持つ実装の所在(アドレス)を突き止めて返します、それでそれは関数として呼び出し可能です。