contents


preface
acknowledgments
about this book
about the authors
about the cover illustration

Part 1 Starting with MacRuby

1 Introducing MacRuby
1.1 Introducing MacRuby
1.2 Cocoa: What you need to know
1.3 Objective-C and Ruby: what you need to know
1.4 Diving into MacRuby
1.5 Hello World, part 2
1.6 Summary
2 Using Macirb and the Apple development tools
2.1 Using external libraries with MacRuby
2.2 Exploring Macirb
2.3 Building a Pomodoro application in Xcode
2.4 Summary
3 Going beyond the basics with Xcode Interface Builder
3.1 About Interface Builder
3.2 Creating connections
3.3 Creating the Todo List application
3.4 Summary

Part 2 Take it for a spin

4 Using the delegate pattern
4.1 What are delegates?
4.2 Delegation as an extension technique
4.3 Using delegation in a custom MacRuby web browser
4.4 Summary
5 Notifications and implementing the observer pattern
5.1 Notifying multiple objects
5.2 Setting up notifications
5.3 Queuing notifications
5.4 Responding to notifications
5.5 Building an iTunes-notification observer
5.6 Summary
6 Using key-value coding and key-value observing
6.1 Simplifying code with key-value coding
6.2 Using KVO to implement observers
6.3 Building out the Product Inventory application
6.4 Summary
7 Implementing persistence with Core Data
7.1 Introducing Core Data
7.2 Understanding the persistent store and managed objects
7.3 Working with managed objects
7.4 Retrieving objects from Core Data
7.5 Creating a Core Data version of the Todo List application
7.6 Summary
8 Core Animation basics
8.1 Introduction to Core Animation
8.2 Core Animation layers
8.3 Animating with Core Animation
8.4 Summary

Part 3 MacRuby extras

9 HotCocoa
9.1 Introducing HotCocoa
9.2 Built-in mappings
9.3 Building a speech application using HotCocoa
9.4 Summary
10 MacRuby testing
10.1 Testing MacRuby applications with MiniTest
10.2 Installing and configuring MiniTest
10.3 Application vs. logic testing
10.4 Where to start testing
10.5 Summary
11 MacRuby and the Mac App Store
11.1 Introducing the Mac App Store
11.2 Knowing the App Store rules
11.3 Submitting a MacRuby application
11.4 Summary

appendix A Scripting with MacRuby
index