
MacRuby: The Definitive Guide
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- MacRuby: The Definitive Guide
- Dedication
- 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
- 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
- User's 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
- 6. Xcode
- Xcode IDE
- Template
- Navigator Area
- Editor Area
- Debug Area
- Utility Area
- 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
- 8. One Step Deeper
- Selectors
- Blocks
- Concurrency
- Grand Central Dispatch
- Queues
- Groups
- GCD dispatch gem
- Sandboxing
- Using Objective-C or C Code
- Scriptable Applications
- Method Missing
- Pointers
- Void Pointers
- Unsigned Pointer
- Compilation
- Compilation Within Xcode
- 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
- Index
- About the Author
- Colophon
- Copyright
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.