[MacRuby-devel] [MacRuby] #632: performSelector behaves oddly.
MacRuby
ruby-noreply at macosforge.org
Sat Mar 13 20:05:38 PST 2010
#632: performSelector behaves oddly.
-----------------------------+----------------------------------------------
Reporter: rob@… | Owner: lsansonetti@…
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/>
More information about the MacRuby-devel
mailing list