[macruby-changes] [635] MacRuby/trunk/lib/hotcocoa/delegate_builder.rb

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 28 18:51:34 PDT 2008


Revision: 635
          http://trac.macosforge.org/projects/ruby/changeset/635
Author:   rich at infoether.com
Date:     2008-09-28 18:51:33 -0700 (Sun, 28 Sep 2008)
Log Message:
-----------
fix delegates

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/delegate_builder.rb

Modified: MacRuby/trunk/lib/hotcocoa/delegate_builder.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/delegate_builder.rb	2008-09-28 03:49:21 UTC (rev 634)
+++ MacRuby/trunk/lib/hotcocoa/delegate_builder.rb	2008-09-29 01:51:33 UTC (rev 635)
@@ -43,9 +43,9 @@
       end
       
       def set_delegate
-        puts "setting delegate (#{delegate}) on #{control.class} which has the following methods:"
-        puts (delegate.methods.sort - Object.methods).collect {|method| "- #{method}"}
-        control.setDelegate(delegate)
+        #puts "setting delegate (#{delegate}) on #{control.class} which has the following methods:"
+        #puts (delegate.methods.sort - Object.methods).collect {|method| "- #{method}"}
+        control.performSelector('setDelegate:', withObject:delegate)
       end
       
       def block_instance_variable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080928/547dcca3/attachment.html 


More information about the macruby-changes mailing list