Skip to content
Browse files

[README] Provide iCloud details

  • Loading branch information...
1 parent 8415276 commit 9dddc5d278f0bca0ef1e9dc79153f5075e1051ea @emrosenf emrosenf committed Feb 15, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -41,6 +41,16 @@ Each call instantiates one of each piece of the Core Data stack, and provides ge
And, before your app exits, you can use the clean up method:
[MagicalRecordHelpers cleanUp];
+
+## iCloud Support
+
+ Apps built for iOS5+ and OSX Lion 10.7.2+ can take advantage of iCloud to sync Core Data stores. To implement this functionality with Magical Record, use **one** of the following setup calls instead of those listed in the previous section:
+
+ + (void) setupCoreDataStackWithiCloudContainer:(NSString *)icloudBucket localStoreNamed:(NSString *)localStore;
+ + (void) setupCoreDataStackWithiCloudContainer:(NSString *)containerID contentNameKey:(NSString *)contentNameKey localStoreNamed:(NSString *)localStoreName cloudStorePathComponent:(NSString *)pathSubcomponent;
+ + (void) setupCoreDataStackWithiCloudContainer:(NSString *)containerID contentNameKey:(NSString *)contentNameKey localStoreNamed:(NSString *)localStoreName cloudStorePathComponent:(NSString *)pathSubcomponent completion:(void(^)(void))completion;
+
+For further details, and to ensure that your application is suitable for iCloud, please see (Apple's iCloud Notes)[https://developer.apple.com/library/ios/#releasenotes/DataManagement/RN-iCloudCoreData/_index.html]. In particular note that the first helper method, + (void) setupCoreDataStackWithiCloudContainer:(NSString *)icloudBucket localStoreNamed:(NSString *)localStore, automatically generates the **NSPersistentStoreUbiquitousContentNameKey** based on your application's Bundle Identifier. If you are managing multiple different iCloud stores it is highly recommended that you use one of the other helper methods to specify your own **contentNameKey**
### Default Managed Object Context

0 comments on commit 9dddc5d

Please sign in to comment.
Something went wrong with that request. Please try again.