Browse files

Updated EGOCache/OSX code to use Library/Caches

  • Loading branch information...
1 parent dda4c8b commit e597fb1c833c737e861d4fa1d8f5aa6ccb37eb27 @shnhrrsn shnhrrsn committed Nov 26, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 EGOCache.m
View
4 EGOCache.m
@@ -29,8 +29,8 @@
#ifdef TARGET_OS_IPHONE
_EGOCacheDirectory = [[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/EGOCache"] copy];
#else
- NSString* appSupportDir = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) objectAtIndex:0];
- _EGOCacheDirectory = [[[appSupportDir stringByAppendingPathComponent:[[NSProcessInfo processInfo] processName]] stringByAppendingPathComponent:@"EGOCache"] copy];
+ NSString* cacheSupportDir = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0];
+ _EGOCacheDirectory = [[[cacheSupportDir stringByAppendingPathComponent:[[NSBundle mainBundle] bundleIdentifier]] stringByAppendingPathComponent:@"EGOCache"] copy];
#endif
}

0 comments on commit e597fb1

Please sign in to comment.