Ticket #632 (closed defect: fixed)
performSelector behaves oddly.
| Reported by: | rob@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | minor | Milestone: | MacRuby 0.8 |
| Component: | MacRuby | Keywords: | #reduction |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

