Contents

object_getInstanceVariable

Obtains the value of an instance variable of a class instance.

Declaration

extern Ivar object_getInstanceVariable(id obj, const char *name, void **outValue);

Parameters

  • obj:

    A pointer to an instance of a class. Pass the object containing the instance variable whose value you wish to obtain.

  • name:

    A C string. Pass the name of the instance variable whose value you wish to obtain.

  • outValue:

    On return, contains a pointer to the value of the instance variable.

Return Value

A pointer to the Ivar data structure that defines the type and name of the instance variable specified by name.

See Also

Working with Instances