From: Anne G <an...@wj...> - 2005-12-23 13:51:11
|
For both the tutorial and simpleapp I do the same thing. All the code comes in a folder. I double click on the simpleapp.pbproj which opens xcode. (it tells me the project was saved with an older version of xcode, and it creates simpleapp.xcodeproj. then I click on build and run. simpleapp runs fine from the developer/example/rubycocoa folder, but it does not run from the desktop folder. the error message shows up in its own xcode window. thanks for your help anne On Fri, 23 Dec 2005, Jonathan Paisley wrote: > > > I replaced the tutorial rb_main.rb with the simple > > example rb_main.rb since they seemed to do the same > > thing and I know simple example works. > > after rbfiles each do... > > I added some debugging puts > > puts File.basename(path) > > require( File.basename(path) ) > > puts "this is ok " > > Controller.rb > > /Users/anne/Desktop/learning ruby/ruby > > projects:addon/Code/build/Development/RubyCocoaTar.app/Contents/ > > Resources/rb_main.rb:17:in > > `require': No such file to load -- Controller.rb (LoadError) > > This require must be the problem since it does not print > > the "this is ok" > > Could you explain exactly how you are attempting to run the program? > > Using 'ruby rb_main.rb' will not work - you have to start the > compiled stub program in the Contents/MacOS directory or open the > application as you would any other (from the Finder or use the 'open' > command). > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |