ParcelKit
ParcelKit integrates Core Data with Dropbox using the Dropbox Datastore API
Install / Use
/learn @overcommitted/ParcelKitREADME
ParcelKit 
ParcelKit integrates Core Data with Dropbox using the Dropbox Datastore API.
Installation
ParcelKit can be added to a project using CocoaPods. We also distribute a framework build.
Using CocoaPods 
// Podfile
pod 'ParcelKit', '~> 2.1'
and
pod install
Framework
- Open the ParcelKit.xcodeproj project
- Select the “Framework” scheme
- Build (⌘B) the Framework
- Open the Products section in Xcode, right click “libParcelKit.a”, and select “Show in Finder”
- Drag and drop the “ParcelKit.framework” folder into your iPhone/iPad project
- Edit your build settings and add
-ObjCto “Other Linker Flags”
Usage
Include ParcelKit in your application.
#import <ParcelKit/ParcelKit.h>
Initialize an instance of the ParcelKit sync manager with the Core Data managed object context and the Dropbox data store that should be used for listening for changes from and writing changes to.
PKSyncManager *syncManager = [[PKSyncManager alloc] initWithManagedObjectContext:self.managedObjectContext datastore:self.datastore];
Associate the Core Data entity names with the corresponding Dropbox data store tables.
[syncManager setTable:@"books" forEntityName:@"Book"];
Start observing changes from Core Data and Dropbox.
[syncManager startObserving];
Hold on to the sync manager reference.
self.syncManager = syncManager;
Set up Core Data
<img src="https://raw.github.com/overcommitted/ParcelKit/master/ParcelKitAttribute.png" align="right" width="725px" height="132px" />ParcelKit requires an extra attribute inside your Core Data model.
- syncID with the type String. The Indexed property should also be checked.
Make sure you add this attribute to each entity you wish to sync.
An alternative attribute name may be specifed by changing the syncAttributeName property on the sync manager object.
Documentation
- ParcelKit Reference documentation
Example Application
- Toado - Simple task manager demonstrating the integration of Core Data and Dropbox using ParcelKit.
Requirements
- iOS 6.1 or higher
- Dropbox Sync SDK 3.1.0 or higher
- Xcode 5 or higher
License
MIT.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
