Returns by indirection the receiver's argument at a specified index.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
An untyped buffer to hold the returned argument. See the discussion below relating to argument values that are objects.
An integer specifying the index of the argument to get.
Indices 0 and 1 indicate the hidden arguments
_cmd, respectively; these values can be retrieved directly with the
selectormethods. Use indices 2 and greater for the arguments normally passed in a message.
This method copies the argument stored at
index into the storage pointed to by
buffer. The size of
buffer must be large enough to accommodate the argument value.
When the argument value is an object, pass a pointer to the variable (or memory) into which the object should be placed:
This method raises
index is greater than the actual number of arguments for the selector.