[MacRuby-devel] MacRubyWithRubyInject

Rich Morin rdm at cfcl.com
Thu Oct 30 20:18:19 PDT 2008

Jordan Hubbard brought up RubyInject, discussed at:


RubyInject can be used with RubyCocoa to introspect on an
application's objects, send messages to them, etc.  It's
possible that it can do even more with MacRuby, but I dunno.

Anyway, I got brave and downloaded the RubyInject.  That
went OK, as did the xcodebuild step.  I edited the inject.rb
script into an mr_inject.rb variant (eg, removing RubyCocoa
goo) and gave it a try.  Sadly, it couldn't load dnssd.

So, I tried installing dnssd as a gem.  This worked OK, but
MacRuby still didn't find it.  Guessing that I needed macgem,
I gave that a try.  The results are documented on


If someone can help me get this sucker loaded and running, I
promise to write it up on the wiki.  Any takers?

http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     rdm at cfcl.com
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development

More information about the MacRuby-devel mailing list