diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-03 21:27:26 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-03 21:27:26 +1300 |
| commit | 10655bc37c51645ecdcfa2cd8c059a5e0fb17335 (patch) | |
| tree | 6ab30353f0ef359d10adc450a6bcaaa1eff0289b /include/Paradox | |
| parent | 7647aa38c770ef443f0158ce9996f6b125b0a93b (diff) | |
| download | Paradox-10655bc37c51645ecdcfa2cd8c059a5e0fb17335.tar.xz Paradox-10655bc37c51645ecdcfa2cd8c059a5e0fb17335.zip | |
object introspection and respondsToSelector
Diffstat (limited to 'include/Paradox')
| -rw-r--r-- | include/Paradox/Object.h | 12 |
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; |
