summaryrefslogtreecommitdiff
path: root/CyteKit/Application.mm
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit/Application.mm')
-rw-r--r--CyteKit/Application.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/CyteKit/Application.mm b/CyteKit/Application.mm
index 9bd42ff..77b1260 100644
--- a/CyteKit/Application.mm
+++ b/CyteKit/Application.mm
@@ -25,6 +25,7 @@
#include <UIKit/UIKit.h>
#include "CyteKit/Application.h"
+#include "CyteKit/URLCache.h"
#include "iPhonePrivate.h"
#include <Menes/ObjectHandle.h>
@@ -57,6 +58,12 @@
if ([self respondsToSelector:@selector(setApplicationSupportsShakeToEdit:)])
[self setApplicationSupportsShakeToEdit:NO];
+
+ [NSURLCache setSharedURLCache:[[[CyteURLCache alloc]
+ initWithMemoryCapacity:524288
+ diskCapacity:10485760
+ diskPath:[NSString stringWithFormat:@"%@/%@/%@", NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject, NSBundle.mainBundle.bundleIdentifier, @"SDURLCache"]
+ ] autorelease]];
}
@end