I want to call some Ruby code from existing cocoa applications. I
assume I should use RBBundleInit(), but I'm not entirely sure I
understand it. In particular, what's the Class argument for?
Am I on the right track here?
Thanks,
-Rich-
Rich,
On Jan 10, 2008, at 3:26 AM, Rich Warren wrote:
> I want to call some Ruby code from existing cocoa applications. I
> assume I should use RBBundleInit(), but I'm not entirely sure I
> understand it. In particular, what's the Class argument for?
>
The Class argument is used to identify the bundle and get the path to
the script you are loading. I've written a short blog article that
covers using RBBundleInit() to load RubyCocoa bundles into existing
apps:
http://threeve.org/blog/2007/12/loadable-bundles-using-rubycocoa.html
> Am I on the right track here?
Seems like you are. Good luck!
Jason