The principal types used in Objective-C are defined in objc/objc.h. They are:
Type | Definition |
|---|---|
An object (a pointer to its data structure). | |
A class object (a pointer to the class data structure). | |
A selector, a compiler-assigned code that identifies a method name. | |
A pointer to a method implementation that returns an | |
A Boolean value, either |
id can be used to type any kind of object, class, or instance. In addition, class names can be used as type names to statically type instances of a class. A statically typed instance is declared to be a pointer to its class or to any class it inherits from.
The objc.h header file also defines these useful terms:
Type | Definition |
|---|---|
A null object pointer, | |
A null class pointer, | |
A boolean false value, | |
A boolean true value, |
Last updated: 2008-02-05