Created
December 7, 2013 10:01
-
-
Save somtd/7839246 to your computer and use it in GitHub Desktop.
Synchronize CoreData with Parse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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