objc_object

Represents an instance of a class.

Declaration

struct objc_object { Class isa; };

Discussion

When you create an instance of a particular class, the allocated memory contains an objc_object data structure, which is directly followed by the data for the instance variables of the class.

The alloc and allocWithZone: methods of the Foundation framework class NSObject use the function class_createInstance to create objc_object data structures.

Symbols

Fields

isa

A pointer to the class definition of which this object is an instance.