ADC—Developing Cocoa Applications Using MacRuby

, Oct 20, 2008

Apple Developer Connection:

Ruby is a dynamic programming language that, over the last few years, has enjoyed enormous popularity, thanks in part to the Rails web framework. Now with MacRuby, you can create Mac OS X applications with Ruby while maintaining the peformance benefits of a fully fledged Cocoa application. This article will show you how to get started with MacRuby and build your first sample application.

Interesting, including syntax extensions for Objective C's Smalltalk-style method names.

On October 20, 2008 10:40 PM, Piers Cawley said:

I’m pretty sure that that’s not MacRuby specific, but part of Ruby 1.9.

On October 22, 2008 10:38 PM, Mathias Meyer said:

It’s in fact part of Ruby 1.9, it’s another syntax for hashes (initially intended to be named parameters) but together with Cocoa you get the style of named parameters that Objective-C already has. And that’s just neat. If there’s one thing that’s ugly about RubyCocoa as it is now, it’s method calls like insertItemWithTitle_action_keyEquivalent_atIndex_.