Declared in NSInvocation+RACTypeParsing.h

Tasks

  • – rac_setArgument:atIndex:

    Sets the argument for the invocation at the given index by unboxing the given object based on the type signature of the argument.

  • – rac_argumentAtIndex:

    Gets the argument for the invocation at the given index based on the invocation’s method signature. The value is then wrapped in the appropriate object type.

  •   rac_argumentsTuple

    Arguments tuple for the invocation.

    property
  • – rac_returnValue

    Gets the return value from the invocation based on the invocation’s method signature. The value is then wrapped in the appropriate object type.

Properties

rac_argumentsTuple

Arguments tuple for the invocation.

@property (nonatomic, copy) RACTuple *rac_argumentsTuple

Discussion

Arguments tuple for the invocation.

The arguments tuple excludes implicit variables self and _cmd.

See -rac_argumentAtIndex: and -rac_setArgumentAtIndex: for further description of the underlying behavior.

Declared In

NSInvocation+RACTypeParsing.h

Instance Methods

rac_argumentAtIndex:

Gets the argument for the invocation at the given index based on the invocation’s method signature. The value is then wrapped in the appropriate object type.

- (id)rac_argumentAtIndex:(NSUInteger)index

Discussion

Gets the argument for the invocation at the given index based on the invocation’s method signature. The value is then wrapped in the appropriate object type.

This does not support C arrays or unions.

index - The index of the argument to get.

Returns the argument of the invocation, wrapped in an object.

Declared In

NSInvocation+RACTypeParsing.h

rac_returnValue

Gets the return value from the invocation based on the invocation’s method signature. The value is then wrapped in the appropriate object type.

- (id)rac_returnValue

Discussion

Gets the return value from the invocation based on the invocation’s method signature. The value is then wrapped in the appropriate object type.

This does not support C arrays or unions.

Returns the return value of the invocation, wrapped in an object. Voids are returned as RACUnit.defaultUnit.

Declared In

NSInvocation+RACTypeParsing.h

rac_setArgument:atIndex:

Sets the argument for the invocation at the given index by unboxing the given object based on the type signature of the argument.

- (void)rac_setArgument:(id)object atIndex:(NSUInteger)index

Discussion

Sets the argument for the invocation at the given index by unboxing the given object based on the type signature of the argument.

This does not support C arrays or unions.

Note that calling this on a char * or const char * argument can cause all arguments to be retained.

object - The object to unbox and set as the argument. index - The index of the argument to set.

Declared In

NSInvocation+RACTypeParsing.h