Re: [MacRuby-devel] Problem with a window controller

2012-11-30 Thread Jim Getzen
Hi David, You might check out this Stack Overflow entry to see if it solves your problem: http://stackoverflow.com/questions/2695671/nswindowcontroller-windowdidload-not-called Jim On Nov 29, 2012, at 6:50 PM, david kramf wrote: Hi, In the copied below code only the awakeFromNib is execute

[MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
I'm trying to get started with tdd and MacRuby, but I've hit a stumbling block immediately with macbacon. I suspect it's something to do with rvm, but I'm not sure. When I run macbacon like this: $macbacon my_class_test.rb I get the following error backtrace: /Users/fatboy/.rvm/rubie

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Daniel Westendorf
Stephen, It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install the gem using macgem? You might have to uninstall any other versions you've installed. I never had much luck with RVM+MacRuby; I always installed MacRuby using the installer from the website. This might have been fixe

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
Thanks Daniel, you were right - I'd gem installed it. I've now gem uninstalled it and tried with macgem, but whilst that claims to install it, I get a Gem::LoadError when I try to use it: $sudo macgem install mac_bacon Successfully installed mac_bacon-1.3 1 gem installed and then try: $macbaco

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Joshua Ballanco
Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, MacRuby doesn't automatically load RubyGems by default. On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote: > Thanks Daniel, you were right - I'd gem installed it. I've now gem > uninstalled it and tried with macgem

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread J Silver
Wow, didn't even know 1.9 required "rubygems" by default! Thanks! On 30/11/2012 10:22, Joshua Ballanco wrote: Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, MacRuby doesn't automatically load RubyGems by default. On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
Hi Joshua, No, I had missed that in my script, but now it's there I still get the same error. It seems to be happening in /usr/local/bin/macbacon itself, before it gets to my script. Stephen On 30/11/2012, at 18:22, Joshua Ballanco wrote: > Do you have a "require 'rubygems'" in your script

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Joshua Ballanco
Try checking the shebang line on the macbacon executable: > head -1 `which macbacon` - Josh On Friday, November 30, 2012 at 8:39 PM, stephen horne wrote: > Hi Joshua, > > No, I had missed that in my script, but now it's there I still get the same > error. It seems to be happening in /usr/l

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
That reads: #!/Library/Frameworks/MacRuby.framework/Versions/0.13/usr/bin/macruby I was using the stable 0.12 release from the macruby.org homepage. I installed a nightly to see if that helped, but it didn't. I just tried installing another macgem, the first I came across online - progressbar,

Re: [MacRuby-devel] Problem with a window controller

2012-11-30 Thread Andy Park
Without being able to verify anything for accuracy at the moment, it looks like your window's delegate is not set to the controller at the time the events are occurring. Check if you need to set this - try tracing the window's delegate at different points of the controller's lifecycle. On 30

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Joshua Ballanco
Hmm…are you using rvm? If so, try re-running after doing a "rvm use system". Otherwise, try looking at your environment to see if any environment variables related to RubyGems are set. On Friday, November 30, 2012 at 9:09 PM, stephen horne wrote: > That reads: > > #!/Library/Frameworks/Mac