From: Eloy D. <elo...@gm...> - 2009-01-28 08:13:27
|
No need to copy over the NIB, you should have a functioning one in XIB from your objc test. About the undefined symbol, have you added the RubyCocoa.framework to your project and linking to it? Eloy On 28 jan 2009, at 07:26, Steven D. Arnold wrote: > On Jan 27, 2009, at 3:50 AM, Eloy Duran wrote: > >> Could you try copying over your source files to the Objective-C >> version >> you wrote to see if the problem might have been the xcode template >> that was used? > > When I try to do that, I run into a number of problems. First of all, > the ObjC project uses XIB files rather than NIB files. The Ruby > program uses NIB files. I am not familiar with XIB files; I assume > they are something new similar to a NIB. > > Second, when I try to copy the NIB files to the ObjC project, it > doesn't work. The files do not appear in the Resources section, which > is where I dropped them, and where they are located in the RubyCocoa > project as well. > > When I try to run the project even though the NIB files are not > present, I get this error: > > /Users/thoth/Source/learning/raiseman-objc/build/Debug/raiseman- > objc.app/Contents/MacOS/raiseman-objc > Undefined symbols: > "_RBApplicationMain", referenced from: > _main in main.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > "_RBApplicationMain", referenced from: > _main in main.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > > main.m looks like this: > > #import <Cocoa/Cocoa.h> > #import <RubyCocoa/RBRuntime.h> > > int main(int argc, char *argv[]) > { > // return NSApplicationMain(argc, (const char **) argv); > return RBApplicationMain("rb_main.rb", argc, argv); > } > > Any thoughts? > > steven > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |