From 8d7be4b1189a27a8c01b50bf8437d8bb4628362f Mon Sep 17 00:00:00 2001 From: matt handler Date: Fri, 22 Apr 2011 14:46:49 -0400 Subject: this fixed it, challa --- Classes/HJMOHandler.m | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'Classes') diff --git a/Classes/HJMOHandler.m b/Classes/HJMOHandler.m index ab95766..0c24464 100755 --- a/Classes/HJMOHandler.m +++ b/Classes/HJMOHandler.m @@ -345,18 +345,13 @@ self.urlConn = nil; // manipulate file here - if ([users count] > 0) { - HJManagedImageV *user = [users objectAtIndex:0]; - if (self.squareCropped) { - NSLog(@"here"); - HJMOFileCache* fileCache = objManager.fileCache; - NSString* loadingFile = [[fileCache loadingFilePathForOid:oid] retain]; - UIImage *cropped = [[[UIImage imageWithContentsOfFile:loadingFile] imageByScalingAndCroppingForSize:CGSizeMake(100,100)] retain]; - //[[[UIImageView alloc] initWithImage:[moHandler.moData imageByScalingAndCroppingForSize:CGSizeMake(100,100)]] autorelease]; - [UIImagePNGRepresentation(cropped) writeToFile:loadingFile atomically:YES]; - NSLog(@"after"); - } - } + if (self.squareCropped) { + HJMOFileCache* fileCache = objManager.fileCache; + NSString* loadingFile = [[fileCache loadingFilePathForOid:oid] retain]; + UIImage *cropped = [[[UIImage imageWithContentsOfFile:loadingFile] imageByScalingAndCroppingForSize:CGSizeMake(100,100)] retain]; + //[[[UIImageView alloc] initWithImage:[moHandler.moData imageByScalingAndCroppingForSize:CGSizeMake(100,100)]] autorelease]; + [UIImagePNGRepresentation(cropped) writeToFile:loadingFile atomically:YES]; + } NSString* readyFilename = [self.objManager.fileCache loadingFinishedForOid:oid]; if (readyFilename==nil) { -- cgit v1.2.3