Publisher: O'Reilly Media Released: October 2011 Pages: 244
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
|
-
MacRuby Overview -
Chapter 1 Introduction - Introducing MacRuby
- Installation
- Code Example
- Loading a Framework
- Using Classes
- Methods
-
Chapter 2 Fundamentals - Run Loops
- Callbacks/Delegation
- User Inputs
- Outlets
- Display
- Example
-
Chapter 3 The Cocoa Environment - History
- Main Frameworks in the Cocoa API
- Reference Library
- Mutability
-
Chapter 4 Foundation - Compatibility Table
- Strings and Attributed Strings
- Arrays
- Hashes/Dictionaries
- Sets
- Enumerators
- Date, Time, and Calendars
- Data
- Locales
- Time Zones
- Exceptions
- I/O
- URLs/Requests/Connections
- Pipes
- File Handles
- Bundles
- Scheduling
- Notifications
- Archiving and Serialization
- Miscellaneous Classes
-
Chapter 5 Application Kit - Cocoa Key Principles
- User Interface
-
Chapter 6 Xcode - Xcode IDE
-
Chapter 7 Core Data - Data Model
- User Interface
- Persistence
-
Chapter 8 One Step Deeper - Selectors
- Blocks
- Concurrency
- Sandboxing
- Using Objective-C or C Code
- Scriptable Applications
- Method Missing
- Pointers
- Compilation
- Compilation Within Xcode
-
MacRuby in Practice -
Chapter 9 Address Book Example - User Interface
- Address Book
- Web API Call
- Cleaning Up: Better Management of Widgets
- The Extra Mile: Displaying More Information Through Notifications
-
Chapter 10 Geolocation - User Interface
- Table View
- Core Location
- Web API
-
Chapter 11 MacRuby in Objective-C Projects - API
- Usage
- Example in an Xcode Project
-
Chapter 12 Objective-C Code in MacRuby Apps - Dynamic Library
- Framework
-
Chapter 13 Using Ruby Third-Party Libraries - RubyGems
- MacRuby Deploy
-
Index -
Colophon |
- Title:
- MacRuby: The Definitive Guide
- By:
- Matt Aimonetti
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- October 2011
- Ebook:
- October 2011
- Pages:
- 244
- Print ISBN:
- 978-1-4493-8037-3
- | ISBN 10:
- 1-4493-8037-9
- Ebook ISBN:
- 978-1-4493-8039-7
- | ISBN 10:
- 1-4493-8039-5
|
-
Matt Aimonetti 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. View Matt Aimonetti's full profile page. |
Colophon 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. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Teresa S. Stover, Bonnie Biafore, Andreea Marinescu
May 2011
Ebook: $43.99
Print & Ebook: $60.49
Print: $54.99
By Johan Vromans
July 2011
Ebook: $10.99
Print & Ebook: $14.29
Print: $12.99
By Stoyan Stefanov
September 2010
Ebook: $23.99
Print & Ebook: $32.99
Print: $29.99
|
Customer Reviews
|
|
|