Core Data by Florian Kugler & Daniel Eggert
Author:Florian Kugler & Daniel Eggert [Kugler, Florian]
Language: eng
Format: azw3
Publisher: objc.io
Published: 2015-12-21T16:00:00+00:00
Organization and Setup
We will use CloudKit as our backend for the example app. That’s mainly because the purpose of the example is to showcase Core Data and not to write a backend. Using CloudKit, we can share Mood instances between all users of the app without having to write our own backend. Plus we can keep our focus on Core Data. However, the architecture and code we describe here will work for more complex situations as well. Toward the end of this chapter, we will further discuss some ways to expand the shown setup depending on your needs.
All the CloudKit-specific code is encapsulated in the CloudKitRemote struct, which implements the MoodyRemoteType protocol. This protocol exposes all the domain-specific functionality we need to communicate with the remote. For the sake of simplicity, we’ll mostly ignore the MoodyRemoteType abstraction and just talk about CloudKit as our remote.
The sample project uses a dummy remote by default, which only logs to the console (ConsoleRemote). This makes it easier to get the project running, because you don’t have to worry about app entitlements and provisioning profiles. The steps to enable the CloudKit remote are described in the sample project’s README file.
As for the CloudKit code in the sample app, we do not intend this to be a state-of-the-art CloudKit implementation. In fact, we are skipping a lot of CloudKit details, as our focus is clearly on the Core Data side of the sync architecture. Please keep this in mind when browsing through the complete code on GitHub.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7810)
Grails in Action by Glen Smith Peter Ledbrook(7719)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6850)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6848)
Running Windows Containers on AWS by Marcio Morales(6375)
Kotlin in Action by Dmitry Jemerov(5092)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5075)
Combating Crime on the Dark Web by Nearchos Nearchou(4650)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4625)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4438)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4339)
The Age of Surveillance Capitalism by Shoshana Zuboff(3981)
Python for Security and Networking - Third Edition by José Manuel Ortega(3900)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3559)
Learn Wireshark by Lisa Bock(3539)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3528)
Mastering Python for Networking and Security by José Manuel Ortega(3376)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3356)
Blockchain Basics by Daniel Drescher(3327)
