summaryrefslogtreecommitdiff
path: root/bleh_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-12 12:28:33 -0400
committerPietro Gagliardi <[email protected]>2014-05-12 12:28:33 -0400
commit05c71e0d252cb9dda500706cbdb939f81b714f1b (patch)
tree607bcba1095b206029ac7aecc986b0fea491d1eb /bleh_darwin.m
parent29d892d2ffb5a0df1f7bdb170fa63b15230150d6 (diff)
Handled AreaHandler.Mouse()'s handled return properly on Mac OS X. Also fixed some typos in objc_darwin.h.
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);
+}