diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-22 14:46:49 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-22 14:46:49 -0400 |
commit | 8d7be4b1189a27a8c01b50bf8437d8bb4628362f (patch) | |
tree | 950c61252f6c07deae39015d111728d4e090af26 /Classes | |
parent | 35a6300294fc7f995a6b46e1c3df986a7b202633 (diff) | |
download | piccast-app-8d7be4b1189a27a8c01b50bf8437d8bb4628362f.tar.gz piccast-app-8d7be4b1189a27a8c01b50bf8437d8bb4628362f.zip |
this fixed it, challa
Diffstat (limited to 'Classes')
-rwxr-xr-x | Classes/HJMOHandler.m | 19 |
1 files changed, 7 insertions, 12 deletions
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) { |