[MacRuby-devel] Obj-C -> MacRuby and back?
Laurent Sansonetti
lsansonetti at apple.com
Wed Apr 28 13:55:19 PDT 2010
Hi Alexander,
On Apr 28, 2010, at 1:49 PM, Alexander von Below wrote:
> Hello,
>
> I have a conceptual question:
>
> Is it possible for an embedded ruby script running in MacRuby to call back into my Cocoa Application easily? Or would the only way be to create distributed Objects or similar IPC mechanisms?
It is possible to run the MacRuby runtime inside a pure Objective-C-based Cocoa app, which allows Objective-C to talk to Ruby objects (and vice-versa) inside the same process. Check out the MacRuby.h header file (an Objective-C API to talk to the runtime) inside the framework, or the EmbeddedMacRuby sample app.
Laurent
More information about the MacRuby-devel
mailing list