Permalink
Browse files

Updated EGOCacheDirectory

  • Loading branch information...
1 parent 7dfcb95 commit cf1b32d7c0bbbe1ef10f1813829767c87d8b51e6 @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 cf1b32d

Please sign in to comment.