Guest User

Untitled

a guest
Jan 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. - (void)startIconDownload:(Product *)product forIndexPath:(NSIndexPath *)indexPath
  2. {
  3. ThumbDownloader *thumbDownloader = [imageDownloadsInProgress objectForKey:indexPath];
  4. if (thumbDownloader == nil)
  5. {
  6. thumbDownloader = [[ThumbDownloader alloc] init];
  7. thumbDownloader.product = product;
  8. thumbDownloader.imageSizeWidth = 87;
  9. thumbDownloader.imageSizeHeight = 87;
  10. thumbDownloader.indexPathInTableView = indexPath;
  11. thumbDownloader.delegate = self;
  12. [imageDownloadsInProgress setObject:thumbDownloader forKey:indexPath];
  13. [thumbDownloader startDownload];
  14. [thumbDownloader release];
  15. }
  16. }
  17.  
  18. - (void)appImageDidLoad:(NSIndexPath *)indexPath
  19.  
  20. -[listingView appImageDidLoad:]: message sent to deallocated instance 0x3beed10
  21.  
  22. - (void)dealloc
  23. {
  24. [myTable release], myTable = nil;
  25. [imageDownloadsInProgress release], imageDownloadsInProgress = nil;
  26. [spinView release], spinView = nil;
  27. [mainView release], mainView = nil;
  28. [tableView release], tableView = nil;
  29.  
  30. [myVs release], myVs = nil;
  31. [filteredVs release], filteredVs = nil;
  32. [toolBar release], toolBar = nil;
  33.  
  34. [super dealloc];
  35. }
  36.  
  37. - (void)dealloc
  38. {
  39.  
  40. for(ThumbDownloader *thumbDownloader in imageDownloadsInProgress)
  41. if(thumbDownloader !=nil && thumbDownloader.delegate!=nil)
  42. thumbDownloader.delegate = nil;
  43.  
  44. .....
Add Comment
Please, Sign In to add comment