• 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: Whats the verdict on Cocoaruby from others ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Whats the verdict on Cocoaruby from others ?


  • Subject: Re: Whats the verdict on Cocoaruby from others ?
  • From: Jakob Olesen <email@hidden>
  • Date: Mon, 17 Jul 2006 21:50:22 +0200


On 17/07/2006, at 2.47, CoLo0LoGo wrote:

I found this while learning ruby on rails
http://rubycocoa.sourceforge.net

From the notes, it uses the full Garbage collection of Ruby, and the
full spectrum of Cocoa's Objects and other items

Has anyone tried it out for anything ?

I have tried it and ended up writing my own Ruby bridge. Not because rubycocoa is bad, but it is intended for a different purpose than mine.


Rubycocoa is intended for writing a Ruby application that uses Cocoa. For this it works very well.
I wanted to write a Cocoa app that uses Ruby for scripting. For this it works not so well.


The fundamental problem is a bit technical, but basically calling Cocoa from Ruby works well, while calling Ruby from Cocoa has limited support. This is OK if you just need to handle callbacks like sheetPanelDidEnd:returnCode:contextInfo:

(The real problem is [NSMethodSignature signatureWithObjCTypes:] being a private method, but that's another matter)

So, rubycocoa is sort of a one-way bridge. It is great for using Cocoa from Ruby, less great for using Ruby from Cocoa.

Oh, and it is LGPL.

Something like pyobjc for Python seems a lot more mature.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Whats the verdict on Cocoaruby from others ?
      • From: Mike Blaguszewski <email@hidden>
    • Re: Whats the verdict on Cocoaruby from others ?
      • From: Sherm Pendley <email@hidden>
References: 
 >Whats the verdict on Cocoaruby from others ? (From: CoLo0LoGo <email@hidden>)

  • Prev by Date: [ANN]: Accessorizer V 1.1 release
  • Next by Date: Re: KVO and the observeValueForKeyPath bottleneck
  • Previous by thread: Re: Whats the verdict on Cocoaruby from others ?
  • Next by thread: Re: Whats the verdict on Cocoaruby from others ?
  • Index(es):
    • Date
    • Thread