summaryrefslogtreecommitdiffstats
path: root/Classes/HJMOPolicy.m
diff options
context:
space:
mode:
authormatt handler <matt.handler@gmail.com>2011-04-20 14:39:20 -0400
committermatt handler <matt.handler@gmail.com>2011-04-20 14:39:20 -0400
commit9d52266f823daf5cb83e3eebe1b9f57594bc9d4a (patch)
tree38402f7ddbb0f3a40ebc7c88d673756701f47510 /Classes/HJMOPolicy.m
downloadpiccast-app-9d52266f823daf5cb83e3eebe1b9f57594bc9d4a.tar.gz
piccast-app-9d52266f823daf5cb83e3eebe1b9f57594bc9d4a.zip
first commit
Diffstat (limited to 'Classes/HJMOPolicy.m')
-rwxr-xr-xClasses/HJMOPolicy.m45
1 files changed, 45 insertions, 0 deletions
diff --git a/Classes/HJMOPolicy.m b/Classes/HJMOPolicy.m
new file mode 100755
index 0000000..25f0eba
--- /dev/null
+++ b/Classes/HJMOPolicy.m
@@ -0,0 +1,45 @@
+//
+// HJManagedObjPolicy.m
+// hjlib
+//
+// Copyright Hunter and Johnson 2009, 2010, 2011
+// HJCache may be used freely in any iOS or Mac application free or commercial.
+// May be redistributed as source code only if all the original files are included.
+// See http://www.markj.net/hjcache-iphone-image-cache/
+
+#import "HJMOPolicy.h"
+
+
+@implementation HJMOPolicy
+
+@synthesize urlTimeoutTime;
+@synthesize readsUpdateFileDate;
+
+//@synthesize loadToFile;
+//@synthesize cacheInMemory;
+//@synthesize asyncStartLoad;
+//@synthesize asyncIsReadyIfCached;
+
+
++(HJMOPolicy*) smallImgFastScrollLRUCachePolicy {
+ //this is the default policy settings.
+ HJMOPolicy* policy = [[[HJMOPolicy alloc] init] autorelease];
+ return policy;
+}
+
+/** default policy is good for small images, fast scrolling, async updates, LRU file cache */
+-(HJMOPolicy*)init {
+ [super init];
+ self.urlTimeoutTime = 30;
+ self.readsUpdateFileDate = YES;
+
+ //self.loadToFile = YES;
+ //self.cacheInMemory = YES;
+ //self.asyncStartLoad = YES;
+ //self.asyncIsReadyIfCached = YES;
+
+ return self;
+}
+
+
+@end