picofuse-objc

NXObject.h
Go to the documentation of this file.
1 
6 #pragma once
7 
28 @interface NXObject : Object
29 
36 + (id)alloc;
37 
45 + (id)allocWithZone:(NXZone *)zone;
46 
52 + (id)new;
53 
61 - (void)dealloc;
62 
67 - (NXZone *)zone;
68 
73 - (id)retain;
74 
79 - (void)release;
80 
86 - (id)autorelease;
87 
96 - (id)copy;
97 
106 - (uintptr_t)hash;
107 
112 - (NXString *)description;
113 
117 + (NXString *)description;
118 
119 @end
id retain()
Increases the retain count of the receiver.
id alloc()
Allocates a new instance in the default zone, or if there isn't one, with sys_calloc().
void dealloc()
Frees the instance.
id new()
Allocates and initializes a new instance, as [[cls alloc] init] does.
id autorelease()
Releases the receiver later, when the current autorelease pool of the thread is drained.
id copy()
Returns a copy which can't be changed by anything else, which the caller owns and has to release...
void release()
Decreases the retain count of the receiver.
A region of memory, from which objects and other memory can be allocated.
Definition: NXZone.h:24
NXString * description()
Returns a string which describes the instance, for logging.
The root class of all Objective-C classes.
Definition: Object.h:20
A string of UTF-8 text.
Definition: NXString.h:53
uintptr_t hash()
Returns a number for the object, which is the same for objects which are equal by isEqual:...
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18