object_setInstanceVariable
Changes the value of an instance variable of a class instance.
Declaration
extern Ivar object_setInstanceVariable(id obj, const char *name, void *value);Parameters
- obj:
A pointer to an instance of a class. Pass the object containing the instance variable whose value you wish to modify.
- name:
A C string. Pass the name of the instance variable whose value you wish to modify.
- value:
The new value for 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.