Type Method

invocationWithMethodSignature:

Returns an NSInvocation object able to construct messages using a given method signature.

Declaration

+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)sig;

Parameters

signature

An object encapsulating a method signature.

Discussion

The new object must have its selector set with NSInvocation and its arguments set with setArgument:atIndex: before it can be invoked. Do not use the alloc/init approach to create NSInvocation objects.

See Also