The base class for objects in the Foundation framework. More...
#import <Foundation/Foundation.h>
Instance Methods | |
(id) | - retain |
Increases the retain count of the receiver. More... | |
(void) | - release |
Decreases the retain count of the receiver. More... | |
(id) | - autorelease |
Adds the receiver to the autorelease pool. | |
![]() | |
(void) | - dealloc |
Free resources for an existing instance. | |
(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... | |
(NXString *) | - description |
Returns a string that represents the instance. More... | |
![]() | |
(BOOL) | - respondsToSelector: |
Checks if the receiver responds to a selector. More... | |
Class Methods | |
(id) | + allocWithZone: |
Allocates a new instance of an object in a specific memory zone. More... | |
![]() | |
(void) | + initialize |
Performs one-time initialization for the class. More... | |
(id) | + alloc |
Allocate a new class instance. 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... | |
(NXString *) | + description |
Returns a string that represents the class. More... | |
Protected Attributes | |
id | _zone |
The memory zone where the object is allocated. | |
unsigned short | _retain |
The retain count of the object. | |
id | _next |
The next object in an autorelease pool. | |
![]() | |
Class | isa |
A pointer to the object's class structure. More... | |
The base class for objects in the Foundation framework.
NXObject extends the functionality of the root Object class by adding support for memory zones, object retention and releasing. All objects that are part of the Foundation framework inherit from this class.
Definition at line 21 of file NXObject.h.
Allocates a new instance of an object in a specific memory zone.
zone | The NXZone in which to allocate the new instance. |
- (void) release |
Decreases the retain count of the receiver.
This method is part of the reference counting memory management system. Sending a release message to an object decreases its retain count by one. If the retain count becomes zero, the object is deallocated.
Reimplemented from <RetainProtocol>.
- (id) retain |
Increases the retain count of the receiver.
This method is part of the reference counting memory management system. Sending a retain message to an object increases its retain count by one.
Reimplemented from <RetainProtocol>.