[MacRuby-devel] hotcocoa - can't find executable...how to find it

2009-01-30 Thread Robert Schaaf
Thanks Tim, this is helpful, but the problem is that once hotcocoa.rb is found, is fails on line 1, framework 'cocoa', thus: RuntimeError: framework at path `cocoa' cannot be loaded: Error Domain=NSCocoaErrorDomain Code=4 UserInfo=0x136c620 "The bundle “cocoa” could not be loaded because it

Re: [MacRuby-devel] hotcocoa - can't find executable...how to find it

2009-01-30 Thread Dr Nic Williams
Try: $LOAD_PATH.unshift File.join(OSX::NSBundle.mainBundle.privateFrameworksPath, 'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0') (from Eloy a few days ago) On Fri, Jan 30, 2009 at 6:27 PM, Tim Rand wrote: >>> $:.each{|path| puts path + "/" + "hotcocoa.rb" if File.exists?(path + "/" >>>

[MacRuby-devel] hotcocoa - can't find executable...how to find it

2009-01-30 Thread Tim Rand
>> $:.each{|path| puts path + "/" + "hotcocoa.rb" if File.exists?(path + "/" + "hotcocoa.rb")} /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa.rb $: is a ruby environmental variable for an array of all the paths that ruby looks at to require a file. Another useful on