Allison Newman
demal****@mac*****
Sun Feb 14 03:36:08 JST 2010
Hi Eric, OK, I'll try to help, but I don't have Snow Leopard running on my system at the moment, so I can't test things for you. RubyCocoa is still under development, but most of the community has moved on to MacRuby, so the pace of development has dropped off. There are commercial products out there that still use RubyCocoa though, so there will still be some work going on. That said, you're going to be very much on your own for most things. If that doesn't appeal to you as an idea, I'd advise you to follow the crowd and move to MacRuby. I don't remember the details on why hash arguments were removed - I had just joined the list at that time, and didn't really pay much attention to the issue. From memory it was because there were problems with ambiguity between Cocoa functions whose method names only differed in the paramaters. Maybe someone else can give a clearer response. As for RubyInject, I've never used it, but as you can see for yourself, the project hasn't moved on SourceForge since 2007, so I am guessing the project is dead. But that said, it doesn't seem to be doing anything particularly tricky, so it should probably still work. If you really need help, Laurent Sansonetti (the author of RubyInject) is the project leader for MacRuby. You could try getting in touch with him at lsans****@apple***** Before doing that though, the link that you gave for mach_star is out of date, or rather it points to the old site which is not being maintained. To get the latest version of mach_star, go here: http://github.com/rentzsch/mach_star The project has been updated recently to work with SnowLeopard, so that will probably help you. If you update your RubyInject project to use the latest mach_star code, I would be surprised if it didn't work. Then you could maybe submit the changes to RubyInject on sourceforge for the other users of RubyCocoa. Hope that helps. Allison Newman Le 13 févr. 10 à 18:51, Eric Christopherson a écrit : > I'm sorry if this is inappropriate here. I've tried asking this twice > on rubycocoa-talk, but gotten no response. Maybe someone here could > answer it. > > Also, two other RubyCocoa questions: > - Is it still under active development? > - Why were hash arguments (emulating Objective-C keyword arguments) > taken away? > > ---------- Forwarded message ---------- > From: Eric Christopherson <echri****@gmail*****> > Date: Tue, Feb 2, 2010 at 12:13 AM > Subject: RubyInject on Snow Leopard > To: rubyc****@lists***** > > > Is RubyInject developed or maintained anymore? Does it work on Snow > Leopard? I've had no success. > > I checked it out from Subversion. To get it to build, I had to make > some changes to the Xcode project: > 1. In mach_inject.c, change references such as e.g. > remoteThreadState.srr0 to remoteThreadState.__srr0. > 2. Change SDKROOT from Mac OS X 10.4 to current OS version. > > After that, it built fine and I put the framework in > /Library/Frameworks. I can't get injection to work, though. At first I > thought I might need to upgrade RubyCocoa, so I downloaded and > installed 1.0.1. That didn't help, though. > > Here is what happens. I type "ruby --verbose ./inject.rb 0" > (specifying pid 0 causes the script to launch TextEdit and attach to > it) and this is the output: > > Injecting to pid 1899 > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_wrapper.rb:50: > [BUG] Bus Error > ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] > > Abort trap > > During this, TextEdit launches and pops up a blank window. > > I have also tried running it with --debug. It shows several LoadError, > NameError, and NoMethodError exceptions that don't show up otherwise. > Could this be part of my problem? I'm not going to post the long debug > output until I find out if there is any hope of getting this working. > > Thanks. > > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel