Skip to content

Commit

Permalink
[iCloud] iCloud will not work without a valid NSPersistentStoreUbiqui…
Browse files Browse the repository at this point in the history
…tousContentNameKey, so use the application Bundle Identifier
  • Loading branch information
emrosenf committed Feb 15, 2012
1 parent d342683 commit 8415276
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/MagicalRecordHelpers.m
Expand Up @@ -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;
Expand Down

0 comments on commit 8415276

Please sign in to comment.