• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: call ruby scripts from objective c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call ruby scripts from objective c


  • Subject: Re: call ruby scripts from objective c
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 22 Feb 2010 10:16:50 -0800
  • Thread-topic: call ruby scripts from objective c

On Sun, 21 Feb 2010 13:56:56 -0800, Rainer Standke <email@hidden> said:
>Hello,
>
>I have a Cocoa app that tries to take advantage of existing ruby code.
>I basically want to use several scripts from a RubyCocoa application
>in my app. Is there a way to do that?

I use NSTask (along with NSPipe and NSFileHandle) for calling Ruby code, but
be aware that you are dependent upon the end-user's Ruby setup, where you
can't rely on particular gems being installed or even on a particular
version of Ruby.

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.

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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

  • Follow-Ups:
    • Re: call ruby scripts from objective c
      • From: Gus Mueller <email@hidden>
  • Prev by Date: Re: NSTableView with PopUpButtonCell column with different content per row
  • Next by Date: Re: Determine if only single instance is running.
  • Previous by thread: call ruby scripts from objective c
  • Next by thread: Re: call ruby scripts from objective c
  • Index(es):
    • Date
    • Thread