Commit Graph

23 Commits

Author SHA1 Message Date
Olivier Poitrey 110799614f Add appledoc comments 2012-05-10 14:07:38 +02:00
Olivier Poitrey ea819b2a45 Rework static library settings and documentation and add an example project
Inspired by http://www.blog.montgomerie.net/easy-xcode-static-library-subprojects-and-submodules
2012-05-10 00:30:48 +02:00
Eli Wang 16d661488a Update README.md with syntax color. 2012-05-09 12:42:09 +02:00
Olivier Poitrey 10aff8e1f0 Add cache key filter support to SDWebManager in order to allow custom cache key generation 2012-05-09 11:04:09 +02:00
Ricky Gu 7030a8f802 Update static library instruction to be more comprehensive. 2012-04-25 15:05:43 -07:00
Piotr Banasik 6c402c1cc6 Updated README to match the header location changes from #101 2012-04-25 10:02:42 +08:00
Olivier Poitrey 14b79734d2 Add some common problem tips 2012-03-22 10:33:07 +01:00
Olivier Poitrey 6781045698 Add some backward compatible block support (fix #64) 2012-03-10 20:15:06 +01:00
Olivier Poitrey 8357f64a68 Add ARC info in README 2012-03-10 17:40:02 +01:00
Beat Besmer 03142f607c Fixed typos 2012-02-22 16:37:23 +01:00
Olivier Poitrey b207dcc6a8 Setup xcode project to allow import in a project as a static library 2012-01-28 00:05:40 +01:00
neogithub 0b9b945a37 Update README.md 2011-10-20 10:03:19 -03:00
Olivier Poitrey 8cc6acb502 Fix typos in the README file (thanks Laurent Etiemble) 2010-06-11 14:40:44 +02:00
Olivier Poitrey e0e369659e Replace the NSOperation based downloader by a simple async NSURLConnection (read-on to understand why)
I finally found the reason behind the download not started while UITableView is manipulated: the default NSURLConnection runloop mode. Its default mode is NSEventTrackingRunLoopMode which is interrupted by UI events. Changing default NSURLConnection runloop mode to NSRunLoopCommonModes just fix this good old responsiveness issue.

I thus decided to replace the current NSOperation based implementation by this finding, as NSOperation is far more expensive than simple async connections. Additionally, moving aways from NSOperation here fix an odd lagging issue with iOS 4, an issue I can't explain at the moment.

Note that `SDWebImageDownloader`'s `setMaxConcurrentDownloads:` method is now a no-op as I didn't implemented the NSOperation queuing system with async connections. I don't think it still necessary as thread-less async connectaions are very lightweight. If you think there is a real need of this, I may reconsider and implement it in the future. In the meantime, this method does nothing and its usage is declared as deprecated.
2010-06-09 04:36:18 +02:00
Olivier Poitrey 2fa0626aaa Remove the dirty hack of storing the helper into the first subview of the UIImageView and prevent duplicate downloads of the same URL
The helper (now called manager) is now handling the mapping between the UIImageView and its downloader.
This way we don't polute the UIImageView, and don't remove its capability to have subviews.
This change removes the automatic handling of image placeholder. The placeholder image can
be passed as second argument of setImageWithURL:placeholderImage:
The manager now handle duplicate downloads for the same URL gracefuly by sharing the same downloader
for all requestors.
Finaly, the manager handles URLs which can't create an image (HTTP error or invalid format) by flagging
them so it won't retry to download them again and again.
2009-09-24 02:35:14 +02:00
Olivier Poitrey 972c304957 Replace the SDWebImageView by an UIImageView category make the integration even simpler 2009-09-23 03:23:08 +02:00
Olivier Poitrey a7734af511 Remove Dailymotion paternity and move to joined paternity with Fraggle behind the Simple Design (SD) team name 2009-09-21 19:36:47 +02:00
Olivier Poitrey 8370d5dfaf Add the Fraggle's storry to the Motivation section 2009-09-21 16:03:45 +02:00
Olivier Poitrey 57b0dae146 Added "Motivation" chapter 2009-09-21 05:34:04 +02:00
Olivier Poitrey 891b957ba8 Add some example about using downloader and image cache store components independently + general doc enhancement 2009-09-21 04:46:34 +02:00
Olivier Poitrey 2177028001 Update TODO 2009-09-21 03:45:10 +02:00
Olivier Poitrey 37258addc2 Quick and dirty documentation 2009-09-19 21:14:40 +02:00
Olivier Poitrey 9cc8f904ab Initial revision 2009-09-19 20:45:42 +02:00