5 Mar
2008
5 Mar
'08
7:46 a.m.
Oh sorry. You are right. performSelector worked well for (id)test; -- Satoshi Nakagawa On 2008/03/05, at 15:03, Laurent Sansonetti wrote:
Ah yes, it's because your test method is defined as returning "void", but MacRuby wants to convert the return value because [NSObject -performSelector:] is registered in the runtime to return an Objective-C object instead (@).
Calling [-performSelector:] on methods that do not return '@' isn't a good idea, as in RubyCocoa.
But we need to fix the real bug, which is that the test method should be called in priority, and not Kernel#test :)
Laurent