objc

Object.h
Go to the documentation of this file.
1 
7 #pragma once
8 
18 @interface Object <ObjectProtocol> {
28 }
29 
41 + (void)initialize;
42 
47 + (id)alloc;
48 
52 - (void)dealloc;
53 
61 - (id)init;
62 
67 - (Class)class;
68 
73 + (Class)class;
74 
79 - (Class)superclass;
80 
85 + (Class)superclass;
86 
91 + (const char *)name;
92 
101 - (BOOL)isEqual:(id)anObject;
102 
110 - (BOOL)isKindOfClass:(Class)cls;
111 
122 + (BOOL)conformsTo:(Protocol *)aProtocolObject;
123 
134 - (BOOL)conformsTo:(Protocol *)aProtocolObject;
135 
136 @end
id alloc()
Allocate a new class instance.
#define OBJC_ROOT_CLASS
A macro to declare a class as a root class.
Definition: runtime.h:83
Protocol for objects.
Class class()
Returns the class of the instance.
id init()
Initialize the instance, after allocation.
bool BOOL
A Boolean value.
Definition: runtime.h:60
Class superclass()
Returns the superclass of the instance.
The root class of all Objective-C classes.
Definition: Object.h:18
const char * name()
Returns the name of the class.
struct objc_class * Class
A pointer to a class definition.
Definition: runtime.h:28
void initialize()
Performs one-time initialization for the class.
void dealloc()
Free resources for an existing instance.
Class isa
A pointer to the object&#39;s class structure.
Definition: Object.h:27
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
Protocol class definition.
Definition: Protocol.h:15