Permalink
Browse files

Generalized image cache managed object

  • Loading branch information...
1 parent 967d3bc commit 39f7c750011d17cdbfe6d313ec85c263b058300a Marcus S. Zarra committed Oct 4, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 ZSImageCacheHandler.m
View
@@ -33,7 +33,6 @@
#import "ZSImageCacheHandler.h"
#import "ZSURLConnectionDelegate.h"
-#import "PGAImageCacheMO.h"
@interface ZSImageCacheHandler ()
@@ -93,7 +92,7 @@ - (NSString*)cachePath
return filePath;
}
-- (void)downloadImage:(NSURL*)url unique:(PGAImageCacheMO*)object
+- (void)downloadImage:(NSURL*)url unique:(NSManagedObject*)object
{
ZSURLConnectionDelegate *delegate = [[self currentRequests] objectForKey:[object objectID]];
if (delegate) return;
@@ -120,7 +119,7 @@ - (UIImage*)imageForURL:(NSString*)url
[request setPredicate:[NSPredicate predicateWithFormat:@"sourceURL == %@", url]];
NSError *error = nil;
- PGAImageCacheMO *imageCacheObject = [[moc executeFetchRequest:request error:&error] lastObject];
+ NSManagedObject *imageCacheObject = [[moc executeFetchRequest:request error:&error] lastObject];
[request release], request = nil;
ZAssert(error == nil, @"Error fetching cache: %@", error);

0 comments on commit 39f7c75

Please sign in to comment.