Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
MacRuby: The Definitive Guide
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
← Prev
Back
Next →
← Prev
Back
Next →