#550: TypeError: unrecognized runtime type when using
NSThread.alloc.initWithTarget
-------------------------------------+--------------------------------------
Reporter: mattaimone...@… | Owner: lsansone...@…
Type: defect | Status: closed
Priority: blocker | Milestone: MacRuby 0.6
Component: MacRuby | Resolution: fixed
Keywords: |
-------------------------------------+--------------------------------------
Changes (by lsansone...@…):
* status: new => closed
* resolution: => fixed
* milestone: MacRuby 0.5 => MacRuby 0.6
Comment:
The problem was when re-typing the method. The problem should be fixed in
r3955.
{{{
$ cat t2.rb
framework 'Foundation'
class Foo
def test(obj)
p "inside test..."
sleep 2
end
end
o = Foo.new
t = NSThread.alloc.initWithTarget(o, selector: :"test:", object: nil)
t.start
p "wait..."
while !t.isFinished; end
p "finished"
$ ./miniruby t2.rb
"wait...""inside test..."
"finished"
$
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/550#comment:1>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel