Skip to content

Commit

Permalink
Fixing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MattRogish committed Feb 22, 2012
1 parent db58f37 commit 6e153e6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions builder/project_templates/iOS/Toura/Classes/TouraAppDelegate.m
Expand Up @@ -39,10 +39,10 @@ - (id) init
- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{
const char* filePath = [[URL path] fileSystemRepresentation];

const char* attrName = "com.apple.MobileBackup";
u_int8_t attrValue = 1;

int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
return result == 0;
}
Expand All @@ -57,13 +57,12 @@ - (NSString *)applicationLibraryDirectory {
*/
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Because of http://stackoverflow.com/questions/8092256/backing-up-prevent-from-the-app-in-icloud
// we need to mark the SQLite db as "DO NOT BACKUP"
// Because iOS5.0.1 moved WebKit SQLite DB into the Library dir we need to mark the SQLite db as "DO NOT BACKUP"
NSString* webkitPath = [[self applicationLibraryDirectory] stringByAppendingPathComponent:@"Webkit"];
NSURL* webkitUrl = [NSURL fileURLWithPath:webkitPath];

[self addSkipBackupAttributeToItemAtURL:webkitUrl];

NSBundle* mainBundle = [NSBundle mainBundle];
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);

Expand Down

0 comments on commit 6e153e6

Please sign in to comment.