The root class of all Objective-C classes. More...
#import <runtime/gcc/objc.h>


Instance Methods | |
| (id) | - init |
| Initialize the instance, after allocation. More... | |
| (Class) | - class |
| Returns the class of the instance. More... | |
| (Class) | - superclass |
| Returns the superclass of the instance. More... | |
| (BOOL) | - isEqual: |
| Compares the receiver to another object for equality. More... | |
| (BOOL) | - isKindOfClass: |
| Returns a Boolean value that indicates whether the receiver is an instance of a given class. More... | |
| (BOOL) | - conformsTo: |
| Checks if the receiver's class conforms to a protocol. More... | |
Instance Methods inherited from <ObjectProtocol> | |
| (BOOL) | - respondsToSelector: |
| Checks if the receiver responds to a selector. More... | |
Class Methods | |
| (void) | + initialize |
| Performs one-time initialization for the class. More... | |
| (Class) | + class |
| Returns the class object. More... | |
| (Class) | + superclass |
| Returns the superclass of the class. More... | |
| (const char *) | + name |
| Returns the name of the class. More... | |
| (BOOL) | + conformsTo: |
| Checks if the class conforms to a protocol. More... | |
Protected Attributes | |
| Class | isa |
| A pointer to the object's class structure. More... | |
The root class of all Objective-C classes.
This class is the base class for all objects in Objective-C. It provides introspection capabilities, but not memory management. Inherit from NXObject for objects which can be allocated.
| - (Class) class |
Returns the class of the instance.
| + (Class) class |
Returns the class object.
Checks if the receiver's class conforms to a protocol.
| aProtocolObject | The protocol to check conformance against. |
This instance method determines whether the receiving object's class adopts or inherits from the specified protocol. This is equivalent to calling the class method on the receiver's class.
Reimplemented from <ObjectProtocol>.
Implemented in Protocol.
Checks if the class conforms to a protocol.
| aProtocolObject | The protocol to check conformance against. |
This class method determines whether the receiving class adopts or inherits from the specified protocol. A class conforms to a protocol if it explicitly declares that it adopts the protocol, or if it inherits from a class that conforms to the protocol.
Reimplemented from <ObjectProtocol>.
Implemented in Protocol.
| - (id) init |
Initialize the instance, after allocation.
Subclasses should override this method to perform custom initialization, and free resources if the initialization fails.
Implemented in NXRunLoop, NXDate, NXCondition, NXLock, and NXWaitGroup.
| + (void) initialize |
Performs one-time initialization for the class.
This method is called automatically by the Objective-C runtime before the class receives messages.
Subclasses may override this method to perform initialization tasks like setting up class variables or initializing static data structures. If subclasses implement this method, they are called first, and may be called multiple times.
Compares the receiver to another object for equality.
| anObject | The object to compare with the receiver. |
When comparing two objects, this method should be overridden to compare the contents of the objects.
Reimplemented from <ObjectProtocol>.
Implemented in NXDate, NXString, NXMap, NXArray, NXNumber, NXColor, and NXData.
Returns a Boolean value that indicates whether the receiver is an instance of a given class.
| cls | A class object. |
Reimplemented from <ObjectProtocol>.
| + (const char *) name |
Returns the name of the class.
Reimplemented from <ObjectProtocol>.
Implemented in NXSensorEvent, NXWirelessNetwork, NXEnvironment, NXArgument, and Protocol.
| - (Class) superclass |
Returns the superclass of the instance.
| + (Class) superclass |
Returns the superclass of the class.
|
protected |