summaryrefslogtreecommitdiff
path: root/bleh_darwin.m
diff options
context:
space:
mode:
Diffstat (limited to 'bleh_darwin.m')
-rw-r--r--bleh_darwin.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m
index 330bc20..bda237a 100644
--- a/bleh_darwin.m
+++ b/bleh_darwin.m
@@ -358,3 +358,20 @@ id makeTrackingArea(id area)
nil); /* userData: */
return trackingArea;
}
+
+/*
+Objective-C 1.0 has the class field of struct objc_super field as class
+Objective-C 2.0 has it as super_class
+and objc_darwin.h is compiled by both C and Objective-C code
+man isn't t his fun?!
+also this made me realize all my problems with working w ith the Objective-C runtime is because Apple's docs haven't been updated to the Objective-C 2.0 stuff so I'm assuming I'll have to read the header files for documentation instead of that
+*/
+
+id objc_msgSendSuper_id(id obj, id class, SEL sel, id a)
+{
+ struct objc_super s;
+
+ s.receiver = obj;
+ s.super_class = (Class) class;
+ return objc_msgSendSuper(&s, sel, a);
+}