Skip to content

Commit

Permalink
Updated EGOCache/OSX code to use Library/Caches
Browse files Browse the repository at this point in the history
  • Loading branch information
shnhrrsn committed Nov 26, 2009
1 parent dda4c8b commit e597fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EGOCache.m
Expand Up @@ -29,8 +29,8 @@
#ifdef TARGET_OS_IPHONE #ifdef TARGET_OS_IPHONE
_EGOCacheDirectory = [[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/EGOCache"] copy]; _EGOCacheDirectory = [[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/EGOCache"] copy];
#else #else
NSString* appSupportDir = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString* cacheSupportDir = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0];
_EGOCacheDirectory = [[[appSupportDir stringByAppendingPathComponent:[[NSProcessInfo processInfo] processName]] stringByAppendingPathComponent:@"EGOCache"] copy]; _EGOCacheDirectory = [[[cacheSupportDir stringByAppendingPathComponent:[[NSBundle mainBundle] bundleIdentifier]] stringByAppendingPathComponent:@"EGOCache"] copy];
#endif #endif
} }


Expand Down

0 comments on commit e597fb1

Please sign in to comment.