[MacRuby-devel] Mixing ruby code with Objective-C code within a Cocoa project...

Alistair Holt alistairholt at gmail.com
Fri Oct 22 11:29:10 PDT 2010


Hi Ric

I think I'm right in saying that you can mix the two languages but not in the same file. Also, you wont be able to use Ruby to write anything for iOS as it's not currently supported. 

--
Alistair Holt

On 22 Oct 2010, at 18:32, "Frederick C. Lee" <frederick_lee at apple.com> wrote:

> Greetings:
>   I'm a MacRuby neophyte and wonder if I'll be able to mix Ruby with Objective-C, similar to the ability to write Objective-C++ code.
> I'm particularly interested in exploiting the power of Ruby's terse language to aid in Objective-C projects; preferably for iOS.
> 
> Or... would I have to keep Ruby code in its own .rb file and pass data to/from ruby routines as parameters.
> 
> Any info?   Demo code?
> 
> Regards,
> 
> Ric.
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


More information about the MacRuby-devel mailing list