Permalink
Browse files

Option to turn off background caching

  • Loading branch information...
1 parent 8302f4d commit 55f1e931574d22c8d2db3b8360da6c13fef47288 Marcus S. Zarra committed Apr 30, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 ZSAssetManager.m
View
@@ -72,7 +72,7 @@ - (NSOperationQueue*)assetQueue;
@implementation ZSAssetManager
-@synthesize allowOSBackgroundCaching;
+@synthesize backgroundCaching;
@synthesize pendingCacheItems;
@synthesize totalDownload;
@synthesize cachePopulationIdentifier;
@@ -86,8 +86,8 @@ - (id)init
// TODO: Is there a way to avoid object:nil?
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityChanged:) name:kReachabilityChangedNotification object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(flushMemoryCaches:) name:UIApplicationDidReceiveMemoryWarningNotification object:[UIApplication shared]];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteringBackground:) name:UIApplicationDidEnterBackgroundNotification object:[UIApplication shared]];
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(flushMemoryCaches:) name:UIApplicationDidReceiveMemoryWarningNotification object:[UIApplication sharedApplication]];
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteringBackground:) name:UIApplicationDidEnterBackgroundNotification object:[UIApplication sharedApplication]];
[self performSelector:@selector(loadPersistentCacheLists) withObject:nil afterDelay:1.0];

0 comments on commit 55f1e93

Please sign in to comment.