#632: performSelector behaves oddly.
-----------------------------+----------------------------------------------
Reporter: r...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
-----------------------------+----------------------------------------------
Hi --
performSelector behaves a little oddly when you try to use it on the built
ins of Ruby.
{{{
macruby-nightly > [1,2,3].performSelector(:pop)
ArgumentError: wrong number of arguments (-2055090267 for 1)
from /Users/robertgleeson/Projects/Ruby/sinatra-effigy/(irb):1:in
`<main>'
}}}
[1,2,3].send(:pop) works fine. In another case, performSelector() caused a
seg fault but I can't remember what I did :-X
I'm only starting to learn Objective C and came across this when I wanted
to see how Objective C methods worked from within MacRuby.
--
Ticket URL: <http://www.macruby.org/trac/ticket/632>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel