Skip to content
Browse files

[iCloud] iCloud will not work without a valid NSPersistentStoreUbiqui…

…tousContentNameKey, so use the application Bundle Identifier
  • Loading branch information...
1 parent d342683 commit 8415276615d9a9e12db9c0207bae373b7397dd56 @emrosenf committed Feb 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/MagicalRecordHelpers.m
View
3 Source/MagicalRecordHelpers.m
@@ -197,7 +197,8 @@ + (BOOL) isICloudEnabled;
+ (void) setupCoreDataStackWithiCloudContainer:(NSString *)icloudBucket localStoreNamed:(NSString *)localStore;
{
- [self setupCoreDataStackWithiCloudContainer:icloudBucket contentNameKey:nil localStoreNamed:localStore cloudStorePathComponent:nil];
+ NSString *contentNameKey = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
+ [self setupCoreDataStackWithiCloudContainer:icloudBucket contentNameKey:contentNameKey localStoreNamed:localStore cloudStorePathComponent:nil];
}
+ (void) setupCoreDataStackWithiCloudContainer:(NSString *)containerID contentNameKey:(NSString *)contentNameKey localStoreNamed:(NSString *)localStoreName cloudStorePathComponent:(NSString *)pathSubcomponent;

0 comments on commit 8415276

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