forSelector(_:argumentIndex:ofReply:)
Returns the interface previously set for the specified selector and parameter.
Declaration
func forSelector(_ sel: Selector, argumentIndex arg: Int, ofReply: Bool) -> NSXPCInterface?Parameters
- sel:
Specifies which method in the protocol you want information about.
- arg:
Specifies the position (starting at index 0) of the parameter for which you want to obtain the current interface. This may be either the position of a parameter in the method itself or the position in its reply block.
- ofReply:
Pass True if
argis an index into the parameters of the reply block, or False if it is an index into the parameters of the method itself.
Discussion
See setInterface(_:for:argumentIndex:ofReply:) for more explanation.