From: Scott T. <ea...@ma...> - 2008-03-25 14:07:54
|
On Mar 25, 2008, at 8:52 AM, kimura wataru wrote: > Hi, > > I think RBBundleInit() is suited for your purpose. > The interface of RBBundleInit is like this. > > // <RubyCocoa/RBRuntime.h> > int RBBundleInit (const char* path_to_ruby_program, > Class objc_class, > id additional_param); > > - path_to_ruby_program: > path of ruby script in the bundle. e.g. "main.rb". > RubyCocoa expects the path as related path from Resources/. > > - objc_class: > an ObjC class to specify your bundle. e.g. AppDelegate. > > - additional_param: > you can pass nil. Thank you. I will try it. However. I don't want to pass "nil" as the additional_param, I want to pass an object. Inside of my Ruby program, how do I find the object that I pass into the additional_param parameter? Scott |