[MacRuby-devel] [MacRuby] #475: GCD Queues should print their label as their "to_s" method

MacRuby ruby-noreply at macosforge.org
Wed Dec 2 17:10:55 PST 2009


#475: GCD Queues should print their label as their "to_s" method
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabhakar@…          |       Owner:  lsansonetti@…        
     Type:  enhancement                 |      Status:  new                  
 Priority:  blocker                     |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------
 Right no, GCD Queues have a generic (i.e., mostly useless) "to_s" method.
 Why not just make the GCD "label" method act as to_s:

 http://github.com/masterkain/macruby/blob/master/gcd.c

 rb_objc_define_method(cQueue, "to_s", rb_queue_label, 0);

 That avoids additional API, and lets it generally "do the right thing"

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/475>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list