aboutsummaryrefslogtreecommitdiff
path: root/include/Paradox
diff options
context:
space:
mode:
Diffstat (limited to 'include/Paradox')
-rw-r--r--include/Paradox/Object.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/Paradox/Object.h b/include/Paradox/Object.h
index d0b77fd..2889cd9 100644
--- a/include/Paradox/Object.h
+++ b/include/Paradox/Object.h
@@ -7,6 +7,8 @@
@interface PXObject {
void* dummy; // it doesn't work without this so don't touch it
}
+
+/* init and lifecycle */
+ (instancetype)alloc;
+ (instancetype)new;
- (instancetype)retain;
@@ -15,6 +17,16 @@
- (void)release;
- (instancetype)autorelease;
+/* object introspection */
+- (Class)class;
+- (Class)superclass;
+- (const char *)className; // CHANGE TO (PXString *) WHEN IMPLEMENTED
+- (BOOL)isKindOfClass:(Class)class;
+- (BOOL)isMemberOfClass:(Class)class;
+
+/* selector stuff */
+- (BOOL)respondsToSelector:(SEL)selector;
+
#ifdef PARADOX_DEBUG_FEATURES
+ (instancetype)allocDebug;
- (void)healthCheck;