aboutsummaryrefslogtreecommitdiff
path: root/src/Object.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/Object.m')
-rw-r--r--src/Object.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Object.m b/src/Object.m
index 71a2a7d..7b26bf8 100644
--- a/src/Object.m
+++ b/src/Object.m
@@ -1,6 +1,7 @@
#include <Paradox/Object.h>
#include <objc/objc.h>
#include <objc/runtime.h>
+#include <objc/objc-arc.h>
#include <stdio.h>
@implementation PXObject
@@ -21,6 +22,18 @@
return object;
}
++ (instancetype) new {
+ return [[self alloc] init];
+}
+
+- (instancetype) retain {
+ return objc_retain_fast_np(self);
+}
+
+- (void) release {
+ objc_release_fast_np(self);
+}
+
- (instancetype)init {
return self;
}