Comments on: MacRuby Tutorial http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/ A weblog dedicated to development with RubyCocoa and MacRuby on OS X Sun, 07 Aug 2016 12:22:10 +0000 http://wordpress.org/?v=2.5.1 By: tp http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-32 tp Sun, 28 Jun 2009 11:31:49 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-32 This is not the MacRuby language, it's RubyCocoa. In the MacRuby language you don't need to add ' < NSWindow Controller' and instead of 'ib_outlet' you use 'attr_writer' and 'attr_accessor' You also don't use 'ib_action :clicked ...' but 'def clicked(sender)' This is not the MacRuby language, it’s RubyCocoa.

In the MacRuby language you don’t need to add ‘ < NSWindow Controller’ and instead of ‘ib_outlet’ you use ‘attr_writer’ and ‘attr_accessor’
You also don’t use ‘ib_action :clicked …’ but ‘def clicked(sender)’

]]>
By: Ratchet http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-30 Ratchet Sun, 16 Nov 2008 09:03:30 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-30 I always got the message "`ClickTestButton': undefined method `stringValue' for nil:NilClass (NoMethodError)" What am I doing wrong? I always got the message “`ClickTestButton’: undefined method `stringValue’ for nil:NilClass (NoMethodError)”
What am I doing wrong?

]]>
By: Eric Berry http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-25 Eric Berry Thu, 16 Oct 2008 21:09:56 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-25 Keep them coming. This is a great screencast, and there is definitely a shortage of them. Keep them coming. This is a great screencast, and there is definitely a shortage of them.

]]>
By: Toby http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-24 Toby Mon, 28 Jul 2008 22:26:26 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-24 This is really sweet. So nice to have something to help with those first few moments with InterfaceBuilder. Thank you. This is really sweet. So nice to have something to help with those first few moments with InterfaceBuilder. Thank you.

]]>
By: David Jordan http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-17 David Jordan Mon, 30 Jun 2008 15:40:26 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-17 My son is interested in learning to program, and specifically for his new iTouch. I'd rather he learn (and I teach him) Ruby instead of Objective-C. Can one use MacRuby on the latest iPhone SDK? My son is interested in learning to program, and specifically for his new iTouch. I’d rather he learn (and I teach him) Ruby instead of Objective-C. Can one use MacRuby on the latest iPhone SDK?

]]>
By: K. M. Lawson http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-6 K. M. Lawson Tue, 17 Jun 2008 03:00:43 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-6 Doh, another error. Ok, I updated this in the posting and in the XCode project download . I also made a small adjustment in the end of the screencast and it is exporting now. It should be uploaded in an hour or so. Doh, another error. Ok, I updated this in the posting and in the XCode project download . I also made a small adjustment in the end of the screencast and it is exporting now. It should be uploaded in an hour or so.

]]>
By: Laurent Sansonetti http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-4 Laurent Sansonetti Mon, 16 Jun 2008 19:30:27 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-4 Great, this second version is better! Just a small note, the real method to be called here should be stringValue=, which sounds more rubyish. The fact that StringValue= (with a capital letter) works is pure luck, because of a bug in MacRuby :) Thanks for the screencast, and keep up the very good work! Great, this second version is better!

Just a small note, the real method to be called here should be stringValue=, which sounds more rubyish. The fact that StringValue= (with a capital letter) works is pure luck, because of a bug in MacRuby :)

Thanks for the screencast, and keep up the very good work!

]]>
By: Jeremy Nicoll http://foolsworkshop.com/rubycocoa/2008/06/macruby-tutorial/#comment-3 Jeremy Nicoll Mon, 16 Jun 2008 12:41:32 +0000 http://foolsworkshop.com/rubycocoa/?p=10#comment-3 Way cool! Ruby is really making inroads, isn't it? Way cool! Ruby is really making inroads, isn’t it?

]]>