Function 関数

object_getInstanceVariable

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

Declaration 宣言

Ivar object_getInstanceVariable(id obj, const char *name, void * _Nullable *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. あるC文字列。 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 インスタンスを扱う