[MacRuby] #1148: Procs used for Cocoa callbacks are being given class objects instance of the instance of the class

MacRuby ruby-noreply at macosforge.org
Sun Jun 19 20:48:10 PDT 2011


#1148: Procs used for Cocoa callbacks are being given class objects instance of
the instance of the class
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------

Comment(by rob@…):

 Try this:


 {{{
   class Receivable < Proc
     def call(sender)
       super(sender)
     end
   end
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1148#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list