Re: [MacRuby-devel] objective-c runtime

2011-01-06 Thread Laurent Sansonetti
Hi, Good catch, the Method structure is likely clashing with the Ruby Method class :) I'm not sure if we should try to make it work, as it's surely an edge case. Maybe #load_bridge_support_file should accept a Module object where the constants should be defined, as a second, optional, argument?

Re: [MacRuby-devel] objective-c runtime

2011-01-06 Thread kyossi
Hi, MacRuby support bridgesupport .You can call any C-function, See "Accessing Static APIs" in http://www.macruby.org/documentation/tutorial.html but..I cannot load bridgesupport file for runtime.h $ cd /Developer/SDKs/MacOSX10.6.sdk/usr/include/objc $ gen_bridge_metadata -c '-I.' runtime.h > ~

Re: [MacRuby-devel] objective-c runtime

2011-01-06 Thread Garett Shulman
I'm guessing this is documented somewhere but have not been able to find it yet... How can objective C runtime methods such as class_copyMethodList be called from MacRuby? Thanks! -Garett ___ MacRuby-devel mailing list [email protected]