[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

Re: [MacRuby-devel] HotCocoa: can't find executable

2009-01-29 Thread Vincent Isambart
> BTW, is there a way to change my setting from digest to individual messages? Yes, there: http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailma

Re: [MacRuby-devel] HotCocoa: can't find executable

2009-01-29 Thread Robert Schaaf
Thanks for the fast turnaround. I'm running on 10.5.6 on 1 MacBook Pro 17", Core 2 Duo at 2.33 GHz. As far as running the commands manually, here are the results. Last login: Thu Jan 29 19:25:20 on ttys001 travelers-macbook-pro-17:~ traveler$ macruby -e "NSBundle.bundleWithPath('/System/Libr

Re: [MacRuby-devel] hotcocoa - can't find executable

2009-01-29 Thread Laurent Sansonetti
Hi Robert, This is quite strange! Could you give us more details regarding your environment (OS version + CPU architecture). Also, does the problem also happen if you do: $ macruby -e "NSBundle.bundleWithPath('/System/Library/Frameworks/ Cocoa.framework').load; p :ok" Or: $ macruby -e "

[MacRuby-devel] hotcocoa - can't find executable

2009-01-28 Thread Robert Schaaf
Hello everybody, I'm new to these parts, so maybe this has already been asked and answered. When I first installed version 3, HotCocoa worked fine, Now, somehow, after a couple of months of not looking at it, this happens: travelers-macbook-pro-17:~ traveler$ macirb >> require 'hotcocoa'