[MacRuby-devel] Calling ObjC method
Satoshi Nakagawa
snakagawa at infoteria.co.jp
Tue Mar 4 23:46:03 PST 2008
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
More information about the MacRuby-devel
mailing list