Re: call ruby scripts from objective c
Re: call ruby scripts from objective c
- Subject: Re: call ruby scripts from objective c
- From: Gus Mueller <email@hidden>
- Date: Mon, 22 Feb 2010 10:38:39 -0800
On Feb 22, 2010, at 10:16 AM, Matt Neuburg wrote:
> And of course RubyCocoa itself is not about Ruby per se, but about Ruby
> bridging to Objective-C; the only way to get *that* is to write your app in
> RubyCocoa (or MacRuby). m.
You don't have to write your app in RubyCocoa to get this, you can also load your ruby files via a bundle as in this example:
http://rubycocoa.svn.sourceforge.net/viewvc/rubycocoa/trunk/src/sample/VPRubyPluginEnabler/
The host is VoodooPad (an ObjC Cocoa app), and the bundle is a mix of RubyCocoa + ObjC. The ObjC code in VoodooPad calls into ruby land without knowing it's ruby.
-gus
--
August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden