Re: [MacRuby-devel] Interfacing with C (not objective C)

2009-03-18 Thread Laurent Sansonetti
Hi Martin & Brian, On Mar 17, 2009, at 9:25 PM, Brian Chapados wrote: I think that if you need to make use extensive use of C functions/libraries, then the least painful route is to wrap this functionality in Objective-C classes. Writing Objective-C classes that call your C code is easier than

Re: [MacRuby-devel] Interfacing with C (not objective C)

2009-03-17 Thread Brian Chapados
I think that if you need to make use extensive use of C functions/libraries, then the least painful route is to wrap this functionality in Objective-C classes.  Writing Objective-C classes that call your C code is easier than writing C ruby extensions.  At least in my opinion, this is why MacRuby m

[MacRuby-devel] Interfacing with C (not objective C)

2009-03-16 Thread Martin Hess
My apologies if this has been covered somewhere else, but how do you interface with C in MacRuby. I know you can just write a C extension for Ruby but it appears that MacRuby makes this easier but it is unclear to me how far its support goes and when you should write an extension. Someone