- ホーム
- > 洋書
- > 英文書
- > Computer / Languages
Full Description
"A great read for iOS developers who want to learn if iCloud is right for their app and dive right in with lots of practical code examples." -Jon Bell, UXLaunchpad.comGet Hands-On Mastery of iCloud Data Management for iOS 7 and OS X Mavericks As apps rapidly move into business and the cloud, iOS and OS X developers need new data management techniques. In Learning iCloud Data Management, renowned Apple database expert Jesse Feiler shows you how to use Apple's latest APIs and technologies to structure and synchronize all forms of data. Feiler helps you understand the issues, implement efficient solutions, and deliver highly usable apps that seamlessly synchronize during the "Round Trip" between iOS and OS X and back again. This guide walks you through integrating several key Apple data management technologies, including the Address Book and Calendar APIs. Feiler shows you how to structure data so it's easy to build great Cocoa and Cocoa Touch user interfaces and to quickly incorporate reliable iCloud syncing. Step by step, you'll discover how to blend Apple's standard application data structures with your own user data to create a feature-rich and fully syncable environment. Coverage includesUnderstanding iCloud from the developer's and user's point of view Accessing synchronized user calendars and contacts Integrating Reminders into your apps Playing by iCloud's user privacy rules Applying consistent iOS Settings and OS X Preferences across user devices Managing persistent storage with Core Data Using Xcode Project Workspaces for shared development Adding data to app bundles and resources Integrating iCloud infrastructure, file wrappers, documents, and data Completing the"Round Trip" between both iOS and OS X
Contents
Preface xviiAcknowledgments xxiiiAbout the Author xxvIntroduction 1Part I: Introducing iCloud 3Chapter 1: Exploring iCloud and Its User Experience 5Looking at Cloud Computing 5Understanding the iCloud Paradigm 7Making the Round Trip 14Chapter Summary 14Exercises 15Chapter 2: Setting Up iCloud for Development 17Managing App Security on iOS and OS X 18Looking Inside the iCloud Basics 23Using iCloud in Your App 30Chapter Summary 31Exercises 32Part II: Using the APIs 33Chapter 3: Introducing the APIs and the First Apps 35Getting Started as an Apple Developer 35Looking at the APIs 37Introducing the Built-In Data Apps 38Wiring Up the Interfaces 50Chapter Summary 55Exercises 55Chapter 4: Working with the AddressBook API for Contacts 57Considering the AddressBook API on iOS and OS X 57Sending Mail from the iOS App 58Sending Mail from the OS X App 65Using Property Lists for Storing and Syncing 65Chapter Summary 66Exercises 67Chapter 5: Managing Calendars and Reminders with the Event Kit API 69Exploring the Event Class Hierarchy 70Setting OS X Permissions 71Working with the Calendar Database 72Adding a Reminder to the App on iOS 80Adding an Event to the App on OS X 83Chapter Summary 85Exercises 85Chapter 6: Protecting the Privacy of User Data 87The Need for Privacy 87Looking at Apple's Rules and Guidelines 88Best Practices in App Privacy 88Chapter Summary 93Exercises 93Part III: Using the Technologies 95Chapter 7: Introducing Blocks, Threads, and Notifications 97Catching Up with Blocks and Threads 98Getting Up to Speed with Notifications 100Receiving Notification of iCloud Availability Changes 102Introducing the Second Project 103Getting Ready to Move On 103Chapter Summary 104Exercises 104Chapter 8: Using Key-Value Coding (KVC) 105Setting Up a Controlled Testing Environment 106Implementing KVC 106Testing iCloud on iOS Simulator 107Preparing Your Project for Testing 108Sharing the Key-Value Store for the Round Trip 110Setting Up and Using NSUbiquitousKeyValueStore 111Chapter Summary 120Exercises 120Chapter 9: Using Preferences, Settings, and Keychains with iCloud 121Using Property Lists 122Working with User Defaults 128Registering Defaults 130Chapter Summary 131Exercises 131Chapter 10: Managing Persistent Storage with Core Data 133Understanding the Goals of Core Data 134Structuring Data 135Understanding How Core Data Works with iCloud 139Introducing the Core Data Project 139Using the Xcode Data Modeling Tool 142Examining the Core Data Stack 154Chapter Summary 155Exercises 155Chapter 11: Using Xcode Workspaces for Shared Development 157Building on the Digital Hub 158Reviewing Xcode File Management 159Setting Up a Multiproject Workspace 162Creating a Multiproject Workspace 163Chapter Summary 167Exercise 168Chapter 12: Adding Data to Apps with Bundles and Resources 169Packages, Bundles, and Resources 169Looking at Sandboxed Files 176Including Property Lists 181Including a Core Data Store 183Chapter Summary 184Exercises 184Part IV: Using iCloud Documents and Data 185Chapter 13: Adding the iCloud Infrastructure 187Exploring the Workspace for the App 188Debugging iCloud Apps with developer.icloud.com 195Building the App 199Creating the Shared Folder 201Creating the App's Classes 215Chapter Summary 230Exercises 230Chapter 14: Working with File Wrappers in iCloud 231Exploring Files, File Wrappers, and Documents 231How Users Manage iCloud Files 233Starting the Placid Project 236Writing the Code 246Working with the Storyboard 270Chapter Summary 270Exercises 270Chapter 15: Working with iOS Documents 273Planning the App's Structure 274Starting the Loon Project 276Writing the Code 280Chapter Summary 315Exercises 315Chapter 16: Working with OS X Documents 317Evolution of NSDocument and UIDocument Differences 317Planning the Project 319Starting the Chazy Project 321Writing the Code 326Testing the App 337Chapter Summary 338Exercises 338Chapter 17: Working with Core Data and iCloud 339Looking at the iCloud Core Data Implementation 339Fallback Stores 341Setting Up and Managing Persistent Stores 342Managing Account Changes 344Database Migration 345Chapter Summary 348Exercises 348Chapter 18: Completing the Round Trip 349How the User Sees the Round Trip 350How the Developer Sees the Round Trip 362Configuring the Shared Ubiquity Container 366Using a Shared iCloud Controller 368Moving Documents to iCloud 376Moving Documents from iCloud to Local Storage 377Chapter Summary 378Exercises 378Index 379