RubyObjC Examples.

Here are a few examples to help you get started with RubyObjC.

RubyRocks (revisited)

posted January 1, 2007

A simple arcade game drawn with Quartz graphics.
Download it.

(updated February 16, 2007 to use imethod/cmethod declaration syntax)

RaiseMan

posted January 1, 2007

A pure-Ruby implementation of a popular Objective-C example.
Download it.

(updated February 16, 2007 to use imethod/cmethod declaration syntax)

MailDemo

posted January 2, 2007

A pure-Ruby implementation of Scott Stevenson's Cocoa Bindings tutorial.
Download it.

(updated February 16, 2007 to use imethod/cmethod declaration syntax)

The Maze Game

posted June 10, 2007

A toy for one or two players.
Download it.

Requires RubyObjC-0.4.0 or later.

Ruby ScreenSaver

posted June 10, 2007

In homage to IronCoder V, here is a RubyObjC example of a Cocoa screen saver.
Download it.

Requires RubyObjC-0.4.0 or later.

Ruby Console Plugin

posted June 10, 2007

An InputManager plug-in that embeds a RubyObjC console in any Cocoa application.
Download it.

Requires RubyObjC-0.4.0 or later. I hear this won't work in Leopard.

To build these examples, you must have Ruby and Rake installed on your system. Also, don't forget to install RubyObjC! Instructions are at the top of the sidebar. The completed applications are universal binaries that can be run on any Mac OS X system (tested on 10.4.8 and up).