Save feedback data into NSApplicationSupportDirectory instead of NSCachesDirectory

We don't want that data to be purged by the system, since there is user entered data in it like name and email, also thread token etc.
This commit is contained in:
Andreas Linde 2012-10-17 01:10:16 +02:00
parent 1f902b4389
commit 356e9fb4da

View File

@ -83,7 +83,6 @@
_fileManager = [[NSFileManager alloc] init];
// temporary directory for crashes grabbed from PLCrashReporter
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
_feedbackDir = [[[paths objectAtIndex:0] stringByAppendingPathComponent:BITHOCKEY_IDENTIFIER] retain];
if (![_fileManager fileExistsAtPath:_feedbackDir]) {