[macruby-changes] [2746] MacRuby/trunk/bridgesupport.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 7 05:56:18 PDT 2009
Revision: 2746
http://trac.macosforge.org/projects/ruby/changeset/2746
Author: vincent.isambart at gmail.com
Date: 2009-10-07 05:56:17 -0700 (Wed, 07 Oct 2009)
Log Message:
-----------
We, poor Leopard users, do not have all the fixes that might have gone
into Snow Leopard
Modified Paths:
--------------
MacRuby/trunk/bridgesupport.cpp
Modified: MacRuby/trunk/bridgesupport.cpp
===================================================================
--- MacRuby/trunk/bridgesupport.cpp 2009-10-07 04:36:52 UTC (rev 2745)
+++ MacRuby/trunk/bridgesupport.cpp 2009-10-07 12:56:17 UTC (rev 2746)
@@ -1093,6 +1093,28 @@
}
}
#endif
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+ static bool R6401816_fixed = false;
+ // XXX work around for
+ // <rdar://problem/6401816> -[NSObject performSelector:withObject:] has wrong sel_of_type attributes
+ if (!R6401816_fixed) {
+ bs_element_method_t *bs_method = GET_CORE()->find_bs_method((Class)rb_cNSObject,
+ sel_registerName("performSelector:withObject:"));
+ if (bs_method != NULL) {
+ bs_element_arg_t *arg = bs_method->args;
+ while (arg != NULL) {
+ if (arg->index == 0
+ && arg->sel_of_type != NULL
+ && arg->sel_of_type[0] != '@') {
+ arg->sel_of_type[0] = '@';
+ R6401816_fixed = true;
+ break;
+ }
+ arg++;
+ }
+ }
+ }
+#endif
static bool R7281806fixed = false;
// XXX work around for
// <rdar://problem/7281806> -[NSObject performSelector:] has wrong sel_of_type attributes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091007/45950d73/attachment.html>
More information about the macruby-changes
mailing list