MacRuby: The Definitive Guide. Ruby and Cocoa on OS X - Helion
ISBN: 978-14-493-1967-0
stron: 246, Format: ebook
Data wydania: 2011-10-13
Księgarnia: Helion
Cena książki: 118,15 zł (poprzednio: 137,38 zł)
Oszczędzasz: 14% (-19,23 zł)
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
Osoby które kupowały "MacRuby: The Definitive Guide. Ruby and Cocoa on OS X", wybierały także:
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
- Programowanie w Ruby. Poziom drugi. Kurs video. Zaawansowane techniki 69,00 zł, (27,60 zł -60%)
- Ruby on Rails (RoR). Kurs video. Programowanie aplikacji internetowych 99,00 zł, (44,55 zł -55%)
- Ruby. Kurs video. Poziom pierwszy. Podstawy języka i praktyczne przykłady 79,00 zł, (35,55 zł -55%)
- Ruby on Rails. Kurs video. Wdrażanie (deployment) na własne serwery i chmurę 59,00 zł, (26,55 zł -55%)
Spis treści
MacRuby: The Definitive Guide. Ruby and Cocoa on OS X eBook -- spis treści
- MacRuby:Â The Definitive Guide
- Dedication
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Preface
- The Purpose of This Book
- Prerequisites
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- I. MacRuby Overview
- 1. Introduction
- Introducing MacRuby
- Why MacRuby?
- Installation
- Mac OS X
- Xcode
- MacRuby
- Code Example
- Loading a Framework
- Using Classes
- Defining a Class and Its Methods
- Ruby Class Instantiation
- Methods
- Documentation
- Method prototypes
- Constant names
- The Interactive Ruby Shell
- Syntactic Sugar
- Documentation
- Introducing MacRuby
- 2. Fundamentals
- Run Loops
- Callbacks/Delegation
- User Inputs
- Outlets
- Display
- Example
- 3. The Cocoa Environment
- History
- Main Frameworks in the Cocoa API
- Foundation Framework
- AppKit Framework
- CoreData Framework
- Reference Library
- Central Panel
- Sidebar
- Mutability
- 4. Foundation
- Compatibility Table
- Strings and Attributed Strings
- Arrays
- Hashes/Dictionaries
- Sets
- Enumerators
- Date, Time, and Calendars
- NSDate
- NSCalendar
- Data
- Locales
- Time Zones
- Exceptions
- I/O
- URLs/Requests/Connections
- Cache Policy and Cache Access
- Asynchronous Versus Synchronous
- Pipes
- File Handles
- Bundles
- Scheduling
- Run Loops
- Timers
- Tasks/Subprocesses
- Threads
- Operations/Operation Queues
- Notifications
- Notification Centers
- Notification Queues
- Archiving and Serialization
- Miscellaneous Classes
- XML Parsing
- Filtering/Logical Conditions
- Undo/Redo
- Users Preferences
- 5. Application Kit
- Cocoa Key Principles
- Model-View-Controller Design Pattern
- Protocols
- Key-Value Coding
- Bindings
- Delegation
- User Interface
- Windows, Views, and Cells
- Windows and panels
- Views
- Cells
- Positioning
- Events and the Responder Chain
- Drawing
- Graphics Context
- Images
- Windows, Views, and Cells
- Cocoa Key Principles
- 6. Xcode
- Xcode IDE
- Template
- Navigator Area
- Editor Area
- Debug Area
- Utility Area
- Xcode IDE
- 7. Core Data
- Data Model
- The Data Model and the Entity
- Adding Attributes
- Relationships
- Setting Up Controllers
- User Interface
- Movies
- Art Cover
- Actors
- Search
- Persistence
- Managed Object Model
- Managed Object Context
- Persistent Store Coordinator
- Workflow
- Data Model
- 8. One Step Deeper
- Selectors
- Blocks
- Concurrency
- Grand Central Dispatch
- Queues
- Groups
- GCD dispatch gem
- Grand Central Dispatch
- Sandboxing
- Using Objective-C or C Code
- Scriptable Applications
- Method Missing
- Pointers
- Void Pointers
- Unsigned Pointer
- Compilation
- Compilation Within Xcode
- 1. Introduction
- II. MacRuby in Practice
- 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
- 10. Geolocation
- User Interface
- Table View
- Core Location
- Web API
- 11. MacRuby in Objective-C Projects
- API
- Usage
- Example in an Xcode Project
- User Interface
- Using the MacRuby Method
- 12. Objective-C Code in MacRuby Apps
- Dynamic Library
- Framework
- BridgeSupport
- 13. Using Ruby Third-Party Libraries
- RubyGems
- MacRuby Deploy
- 9. Address Book Example
- Index
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Copyright