From: Steven D. A. <st...@ne...> - 2009-01-28 06:27:21
|
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 |