Skip to content

Instantly share code, notes, and snippets.

@somtd
Created December 7, 2013 10:01
Show Gist options
  • Save somtd/7839246 to your computer and use it in GitHub Desktop.
Save somtd/7839246 to your computer and use it in GitHub Desktop.
Synchronize CoreData with Parse
#import <Foundation/Foundation.h>
extern NSString * const kSDSyncEngineDownloadCompleteNotification;
extern NSString * const kSDSyncEngineSyncCompletedNotificationName;
typedef enum {
ObjectSynced = 0,
} ObjectSyncStatus;
//Thanks to
//http://www.raywenderlich.com/15916/how-to-synchronize-core-data-with-a-web-service-part-1#
@interface SyncEngine : NSObject
@property (atomic, readonly) BOOL syncInProgress;
+ (SyncEngine *)sharedEngine;
- (void)registerNSManagedObjectClassToSync:(Class)aClass;
- (void)startSync;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment