Instance Method get Return Value:
Gets the receiver's return value.
iOS 2.0+ macOS 10.0+ Mac Catalyst 13.0+ tvOS 9.0+ watchOS 2.0+ Declaration - ( ) void getReturnValue:( ) void * retLoc;
An untyped buffer into which the receiver copies its return value. It should be large enough to accommodate the value. See the discussion below for more information about
NSMethod Signature to determine the size needed for method Return Length
NSUInteger length = [[myInvocation methodSignature] methodReturnLength];
buffer = (void *)malloc(length);
When the return value is an object, pass a pointer to the variable (or memory) into which the object should be placed:
object has never been invoked, the result of this method is undefined.
NSInvocation See Also Configuring an Invocation Object selector
The receiver’s selector, or 0 if it hasn’t been set.
The receiver’s target, or
if the receiver has no target.
nil - retain Arguments
If the receiver hasn’t already done so, retains the target and all object arguments of the receiver and copies all of its C-string arguments and blocks. If a returnvalue has been set, this is also retained or copied.