objc

NXObject.h
Go to the documentation of this file.
1 
9 #pragma once
10 
21 @interface NXObject : Object <RetainProtocol> {
22 @protected
27  id _zone;
28 
33  unsigned short _retain;
34 
39  id _next;
40 }
41 
48 + (id)allocWithZone:(NXZone *)zone;
49 
57 - (id)retain;
58 
66 - (void)release;
67 
71 - (id)autorelease;
72 
73 @end
id retain()
Increases the retain count of the receiver.
id autorelease()
Adds the receiver to the autorelease pool.
id _zone
The memory zone where the object is allocated.
Definition: NXObject.h:27
void release()
Decreases the retain count of the receiver.
A class for managing memory zones.
Definition: NXZone.h:23
The root class of all Objective-C classes.
Definition: Object.h:18
id _next
The next object in an autorelease pool.
Definition: NXObject.h:39
The base class for objects in the Foundation framework.
Definition: NXObject.h:21
unsigned short _retain
The retain count of the object.
Definition: NXObject.h:33
Protocol for retaining and releasing objects.
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18