Home > MacRuby--The-Definitive-Guide

MacRuby--The-Definitive-Guide

MacRuby--The-Definitive-Guide is a project mainly written in RUBY and OBJECTIVE-C, it's free.

MacRuby: The Definitive Guide - code repo

MacRuby: The Definitive Guide - Code Examples

This repository contains code examples used in my MacRuby book.

Examples are organized by chapters so you can follow along.

Chapter 1

  • hello_world.rb Hello World script example.

Chapter 2

  • Demo App example Source code for the demo app.

Chapter 5

  • Drawing: rectangle v1, rectangle v2, failed rectangle drawing, image
  • Bindings Example
  • Events Example

Chapter 7

  • Core Data Example app Source code for the Core Data demo app.

Chapter 8

  • selectors.rb MacRuby selector examples.
  • closures.rb Closure/block/iterator examples.

Chapter 9

  • Twitter Contact Importer App

Chapter 10

  • Around me App

Chapter 11

  • Embedding MacRuby
Previous:Labo