Function 関数

object_setInstanceVariable

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

Declaration 宣言

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. あるC文字列。 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.

See Also 参照

Working with Instances インスタンスを扱う