Ticket #550 (closed defect: fixed)
TypeError: unrecognized runtime type when using NSThread.alloc.initWithTarget
| Reported by: | mattaimonetti@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
>> 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.
Change History
Note: See
TracTickets for help on using
tickets.

