Core Data Synchronization with Ensembles (BETA)
Core Data Synchronization with Ensembles (BETA)
Free!
Minimum price
$19.99
Suggested price
Core Data Synchronization with Ensembles (BETA)

This book is 60% complete

Last updated on 2017-06-19

About the Book

Cloud sync is a feature that every iOS app is expected to have, and yet is notoriously difficult to implement in a robust way. It usually demands a small team of iOS and web developers working together, not to mention the deep pockets needed to pay for cloud services and storage.

The open source Ensembles framework has changed that. You can now build sync into an iOS app using Core Data in a matter of hours, and take your pick of cloud services, including free services like Dropbox and iCloud.

This book introduces you to the goals of the project, and how to install and integrate it in your app. It also covers advanced topics like conflict resolution, and the pitfalls to beware of when your app supports sync.

About the Author

drewmccormack@mac.com
drewmccormack@mac.com

Drew McCormack is a former Research Scientist turned App Developer. He develops the study app Mental Case for OS X and iOS, and founded open source projects like Core Plot and Ensembles. He has authored books on Mac development, contributed articles to the Apple Developer Connection web site, and regularly teaches classes in iOS App Development.

Table of Contents

  • Acknowledgments
  • Preface
  • Introduction
    • What is this Book About?
    • What Will Not be Covered?
  • Introducing Ensembles
    • What is Ensembles?
    • Design Goals
    • How Does it Work?
    • Ensembles versus The Rest
  • Installing Ensembles
    • Downloading Ensembles
    • Integrating Ensembles into an Xcode Project
    • Idiomatic App
    • Deploying Ensembles Server
  • Quick Start Guide
    • E.L.M.
    • Global Identifiers
    • Where Next?
  • The Ensemble
    • What is an ‘Ensemble’?
    • The CDEPersistentStoreEnsemble Class
    • Delegate Methods
    • Notifications
  • Leeching and Deleeching
    • Leeching
    • Initial Data Migration
    • Deleeching
  • Merging
    • What Happens During a Merge?
    • Triggering Merges
    • When to Trigger Merges
    • Updating Contexts
    • Delegate Methods
    • Merge Errors
  • Saving
    • Monitoring Saves
    • Committing Changes
    • Approaches to Saving
    • Termination
    • Delegating Saving
  • Models
    • Loading a Model
    • Designing a Model
    • Migrations
    • Object Identity
    • Working with Data
    • Batched Traversals (Ensembles 2 only)
  • Repairing Conflicts
  • Testing and Debugging
    • Unit Tests
  • Backends
    • iCloud Drive
    • CloudKit
    • Dropbox Core API
    • WebDAV
    • Zip Compression
    • Encryption
    • Ensembles Server (Node.js, S3)
  • Adding a Custom Backend
    • CDECloudFileSystem
  • Notes

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub