RubyCocoa/RBRuntime.h
IntroductionRubyCocoa Runtime APIs. GroupsRuntime API functionsGroup members:
Runtime API functions (deprecated)Group members:
Functions
RBBundleInitinitialize ruby and rubycocoa for a bundle. int RBBundleInit ( const char *path_to_ruby_program, Class objc_class, id additional_param); Parameters
Return Value0 when complete, or not 0 when error. RBApplicationInitinitialize ruby and rubycocoa for an application. int RBApplicationInit ( const char *path_to_ruby_program, int argc, const char *argv[], id additional_param); ParametersReturn Value0 when complete, or not 0 when error. DiscussionAn example of main.m of RubyCocoa applications: int main(int argc, const char* argv[]) { RBApplicationInit("rb_main.rb", argc, argv, nil); return NSApplicationMain(argc, argv); } RBRubyCocoaInitdeperecated, use RBBundleInit(). void RBRubyCocoaInit ( void); Deprecated in version 1.0.3 RBApplicationMaindeperecated, use RBApplicationInit() and NSApplicationMain(). int RBApplicationMain ( const char *path_to_ruby_program, int argc, const char *argv[]); Deprecated in version 1.0.3 |