#550: TypeError: unrecognized runtime type when using
NSThread.alloc.initWithTarget
-------------------------------------+--------------------------------------
 Reporter:  mattaimone...@…          |       Owner:  lsansone...@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:  MacRuby 0.5          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 {{{
 >> framework 'Foundation'
 => true
 >> thread = NSThread.alloc.initWithTarget(self, selector:'sleep:',
 object:'5')
 TypeError: unrecognized runtime type `'
 }}}

 Doing:

 {{{
 framework 'Foundation'

 class ExpensiveCalculation
   def start(to_process)
     puts "processing on a separate thread"
     exit
   end
 end

 calculation = ExpensiveCalculation.new
 thread = NSThread.alloc.initWithTarget(calculation, selector:'start:',
 object:'dummy_obj')
 thread.start
 }}}

 Works fine tho.

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

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to