Re: Whats the verdict on Cocoaruby from others ?
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