Defines the core types and functions of the Objective-C runtime. More...
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | nil ((id)0) |
A null object pointer. | |
#define | Nil ((Class)0) |
A null class pointer. | |
#define | YES true |
The Boolean value true . | |
#define | NO false |
The Boolean value false . | |
#define | OBJC_ROOT_CLASS |
A macro to declare a class as a root class. More... | |
#define | OBJC_UNUSED |
A macro to declare a method parameter is unused. More... | |
#define | OBJC_REQUIRES_NIL_TERMINATION |
A macro to indicate that a method requires a nil-terminated list of arguments. More... | |
Typedefs | |
typedef struct objc_object * | id |
A pointer to an instance of a class. | |
typedef const struct objc_selector * | SEL |
A pointer to a method selector. | |
typedef struct objc_class * | Class |
A pointer to a class definition. | |
typedef id(* | IMP) (id, SEL,...) |
A pointer to a method implementation. | |
typedef struct objc_method * | Method |
A pointer to a method. | |
typedef struct objc_protocol | objc_protocol_t |
An instance of a protocol. | |
typedef bool | BOOL |
A Boolean value. | |
Functions | |
Class | objc_lookupClass (const char *name) |
Looks up a class by name. More... | |
const char * | class_getName (Class cls) |
Returns the name of a class. More... | |
const char * | object_getClassName (id obj) |
Returns the name of an object's class. More... | |
Class | object_getClass (id object) |
Returns the class of an object. More... | |
void | object_setClass (id object, Class cls) |
Sets the class of an object. More... | |
BOOL | object_respondsToSelector (id object, SEL sel) |
Checks if an instance's class responds to a selector. More... | |
Class | object_getSuperclass (id obj) |
Returns the superclass of an object. More... | |
Class | class_getSuperclass (Class cls) |
Returns the superclass of a class. More... | |
BOOL | object_isKindOfClass (id object, Class cls) |
Checks if an instance class matches, or subclass of another class. More... | |
size_t | class_getInstanceSize (Class cls) |
Returns the size of an instance of a class. More... | |
BOOL | class_metaclassRespondsToSelector (Class cls, SEL sel) |
Checks if a class object responds to a selector. More... | |
BOOL | class_respondsToSelector (Class cls, SEL sel) |
Checks if an instance of a class responds to a selector. More... | |
const char * | sel_getName (SEL sel) |
Returns the name of a selector. More... | |
const char * | proto_getName (objc_protocol_t *protocol) |
Returns the name of a protocol. More... | |
BOOL | proto_conformsTo (objc_protocol_t *protocol, objc_protocol_t *otherProtocol) |
Checks if a protocol conforms to another protocol. More... | |
BOOL | class_conformsTo (Class cls, objc_protocol_t *otherProtocol) |
Checks if a class conforms to a protocol. More... | |
Defines the core types and functions of the Objective-C runtime.
This file provides the fundamental data structures and functions that constitute the Objective-C runtime. It includes definitions for objects, classes, selectors, and methods, as well as functions for introspection and message dispatch.
Definition in file runtime.h.