<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -612,27 +612,26 @@ recache2:
 		    char *tmp = (char *)alloca(selname_len);
 		    strncpy(tmp, selname, p - selname + 1);
 		    tmp[p - selname + 1] = '\0';
-		    SEL new_sel = sel_registerName(tmp);
-		    Method m = class_getInstanceMethod(klass, new_sel);
-		    if (m != NULL) {
-			VALUE h = rb_hash_new();
-			bool ok = true;
-			p += 1;
-			for (int i = 1; i &lt; argc; i++) {
-			    const char *p2 = strchr(p, ':');
-			    if (p2 == NULL) {
-				ok = false;
-				break;
-			    }
-			    strlcpy(tmp, p, selname_len);
-			    tmp[p2 - p] = '\0';
-			    p = p2 + 1; 
-			    rb_hash_aset(h, ID2SYM(rb_intern(tmp)), argv[i]);
+		    sel = sel_registerName(tmp);
+		    VALUE h = rb_hash_new();
+		    bool ok = true;
+		    p += 1;
+		    for (int i = 1; i &lt; argc; i++) {
+			const char *p2 = strchr(p, ':');
+			if (p2 == NULL) {
+			    ok = false;
+			    break;
 			}
-			if (ok) {
-			    argc = 2;
-			    ((VALUE *)argv)[1] = h; // bad, I know...
-			    sel = new_sel;
+			strlcpy(tmp, p, selname_len);
+			tmp[p2 - p] = '\0';
+			p = p2 + 1; 
+			rb_hash_aset(h, ID2SYM(rb_intern(tmp)), argv[i]);
+		    }
+		    if (ok) {
+			argc = 2;
+			((VALUE *)argv)[1] = h; // bad, I know...
+			Method m = class_getInstanceMethod(klass, sel);
+			if (m != NULL) {	
 			    method = m;
 			    do_rcache = false;
 			    goto recache2;</diff>
      <filename>dispatcher.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4c4fe0a4be01c3fbdd93272b485218865dc72d6</id>
    </parent>
  </parents>
  <author>
    <name>lsansonetti@apple.com</name>
    <email>lsansonetti@apple.com@23306eb0-4c56-4727-a40e-e92c0eb68959</email>
  </author>
  <url>http://github.com/masterkain/macruby/commit/7bbc3160a6b8753d1c239507faaa1dcc5fd6455a</url>
  <id>7bbc3160a6b8753d1c239507faaa1dcc5fd6455a</id>
  <committed-date>2009-11-10T21:48:02-08:00</committed-date>
  <authored-date>2009-11-10T21:48:02-08:00</authored-date>
  <message>make sure we rubyfy objc-like selectors and box arguments into a Hash before calling #method_missing

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2991 23306eb0-4c56-4727-a40e-e92c0eb68959</message>
  <tree>651d787e922105918b1d02d832f5f190606f7942</tree>
  <committer>
    <name>lsansonetti@apple.com</name>
    <email>lsansonetti@apple.com@23306eb0-4c56-4727-a40e-e92c0eb68959</email>
  </committer>
</commit>
