Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this Book
About the Authors
About the Cover Illustration
1. Starting with MacRuby
Chapter 1. Introducing MacRuby
1.1. Introducing MacRuby
1.1.1. The MacRuby difference
1.1.2. Setting up your environment
1.1.3. Hello World, part 1
1.2. Cocoa: What you need to know
1.2.1. Important classes and concepts
1.2.2. How Cocoa implements common design patterns
1.3. Objective-C and Ruby: what you need to know
1.3.1. A shared heritage
1.3.2. Objective-C 101
1.3.3. Ruby 101
1.4. Diving into MacRuby
1.4.1. Class structure
1.4.2. Creating MacRuby classes
1.4.3. Syntax and method signatures
1.4.4. Using Ruby and Objective-C methods
1.4.5. Creating user interfaces
1.5. Hello World, part 2
1.5.1. Creating an Xcode project
1.5.2. Creating the interface
1.5.3. Creating the controller
1.5.4. Connecting the interface and controller
1.6. Summary
Chapter 2. Using Macirb and the Apple development tools
2.1. Using external libraries with MacRuby
2.1.1. Loading frameworks
2.1.2. Loading Objective-C libraries as bundles
2.1.3. Loading Ruby gems
2.2. Exploring Macirb
2.2.1. Comparing the Ruby and MacRuby consoles
2.2.2. Working in the MacRuby console
2.2.3. Macirb tips and tricks
2.3. Building a Pomodoro application in Xcode
2.3.1. Creating a new MacRuby project
2.3.2. Constructing the interface
2.3.3. Creating the controller