Permalink
Browse files

Merge branch 'master' of git://github.com/enormego/EGOCache

  • Loading branch information...
2 parents 8865cba + cf1b32d commit 74feb4a3392c96105ed23ebe0cb67649744df802 @shnhrrsn shnhrrsn committed Jan 6, 2010
Showing with 2 additions and 6 deletions.
  1. +2 −6 EGOCache.m
View
@@ -26,12 +26,8 @@
static inline NSString* EGOCacheDirectory() {
if(!_EGOCacheDirectory) {
-#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];
-#endif
+ NSString* cachesDirectory = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0];
+ _EGOCacheDirectory = [[[cachesDirectory stringByAppendingPathComponent:[[NSProcessInfo processInfo] processName]] stringByAppendingPathComponent:@"EGOCache"] copy];
}
return _EGOCacheDirectory;

0 comments on commit 74feb4a

Please sign in to comment.