Want to build native Mac OS X applications with a sleek, developer-friendly alternative to Objective-C? MacRuby is an ideal choice. This in-depth guide shows you how Apple’s implementation of Ruby gives you access to all the features available to Objective-C programmers. You’ll get clear, detailed explanations of MacRuby, including quick programming techniques such as prototyping.
Perfect for programmers at any level, this book is packed with code samples and complete project examples. If you use Ruby, you can tap your skills to take advantage of Interface Builder, Cocoa libraries, the Objective-C runtime, and more. If you’re a Cocoa developer, you’ll learn how to improve your productivity with MacRuby.
Get up to speed on MacRuby basics, including classes and methods
Learn how to use MacRuby with Apple’s Xcode developer suite
Delve into the primitive object classes and data types in Foundation Kit
Build event-driven user interfaces with the AppKit framework
Handle relational object persistence with the Core Data framework
Use advanced MacRuby techniques, including concurrency and sandboxing
Get examples for applications using Twitter and a location web service
Embed MacRuby into existing Objective-C applications
Chapter 1 Introduction
Loading a Framework
Chapter 2 Fundamentals
Chapter 3 The Cocoa Environment
Main Frameworks in the Cocoa API
Chapter 4 Foundation
Strings and Attributed Strings
Date, Time, and Calendars
Archiving and Serialization
Chapter 5 Application Kit
Cocoa Key Principles
Chapter 6 Xcode
Chapter 7 Core Data
Chapter 8 One Step Deeper
Using Objective-C or C Code
Compilation Within Xcode
MacRuby in Practice
Chapter 9 Address Book Example
Web API Call
Cleaning Up: Better Management of Widgets
The Extra Mile: Displaying More Information Through Notifications
Matt Aimonetti is a Senior Engineer at Sony Playstation in San Diego, CA where he works on video games. Prior to that, Matt worked with startups, fortune 100 companies and traditional companies, where he had the opportunity to be involved with really captivating projects in different domain spaces from Biotech to comics without forgetting advertising, social networks e-learning and more.
Matt joined the MacRuby team in 2008 and has been active in the Ruby community for many years prior to that. Matt developed or contributed to a lot OSS libraries and frameworks (Merb, Rails and many more), spoke at users groups and conferences in the U.S. and abroad. Matt blogs at http://merbist.com.
The animal on the cover of MacRuby: The Definitive Guide is a northern cardinal (Cardinalis cardinalis), a frequent visitor to backyard bird feeders throughout the United States. Although the male of the species—with its vivid, red plumage—is perhaps more easily recognized, the brown coloration of females is also accented in the characteristic red. Ranging from southeastern Canada and the eastern United States to Mexico and northern parts of Central America, the birds favor dense, shrubby areas, such as those found in forests, gardens, and swamps.
Northern cardinals have prominent crests, thick, cone-shaped beaks, and distinctive facial masks, which are colored black in males and grayish-black in females. The birds reach a length of 8 to 9 inches and usually weigh no more than 2 ounces. Their diet consists of weed and sunflower seeds, grains, fruits, and insects, and the birds feed their young insects almost exclusively. While there is a preference for seeds that are easily husked, this nonmigratory species is less selective during the winter months when food is scarce.
Mated pairs often sing together, sometimes as part of a mating ritual in which the female sings and the male brings food in response. If the mating is successful, this behavior may continue throughout the incubation period, with the female singing from the nest. Fiercely territorial, the male seeks out the highest perch from which he can closely monitor for other males or predators. Particularly in the spring and summer, it is not uncommon to see the male attempting to attack mirrored surfaces, mistaking his reflection for a rival.
Comments about oreilly MacRuby: The Definitive Guide:
I had few knowledge about Ruby and Objective-C programming languages but this book is really easy to understand, if you know something about programming and object-oriented languages. I recommend this to everyone who wants to learn to program with MacRuby, a "bridge" between Ruby and Objective-C in Mac OS X environment.
Bottom Line Yes, I would recommend this to a friend