From: Adam Gardner Date: 2009-02-05T09:54:00+09:00 Subject: Re: Native gem roundup! Julian Leviston wrote: > How would it be technically possible to do jruby cocoa If the machines > weren't macs? > > Blog: http://random8.zenunit.com/ > Learn rails: http://sensei.zenunit.com/ > > On 05/02/2009, at 10:46 AM, Adam Gardner It wouldn't be, but, so? Who says you can't use JRuby on a Mac? Perhaps you're following the MVC pattern, and the Model and perhaps Controller are written using normal old ruby code (perhaps with some java stuff thrown in), and then you create a distinct View for different platforms. Of course, I'm sure you could use Swing or AWT or something (I'm not too familiar with Java GUI frameworks)... it'd be a lot less effort, but with OS X GUI applications, if the interface is not done in Cocoa or Carbon, it usually sticks out like a sore thumb. Again, I'm not particularly sure it'd be worth the effort involved, but I'd certainly expect it to be possible. Most of the heavy lifting in RubyCocoa is done with libffi anyway; it'd probably be possible to switch it to ruby-ffi. More likely, though, the RubyCocoa project will (eventually) disappear entirely, replaced by MacRuby, which is pretty much to Objective-C what JRuby is to Java. -- Posted via http://www.ruby-forum.com/.