Matej Bukovinski
9a3aff4851
Always making callbacks using the main thread.
...
Even if using the downloader directly without SDWebImageManager.
2012-11-19 16:03:39 +01:00
Matej Bukovinski
ab185ea6e8
Implemented progress callbacks and related fixes.
2012-11-19 15:58:50 +01:00
Matej Bukovinski
2e8c02556a
Passing the exact cache type in the completion block.
...
- none, disk and memory
- can still be used as a bool (if true there was a cache hit)
2012-11-19 15:55:09 +01:00
Matej Bukovinski
5c94f17a17
Disk cache now uses the raw image data returned from the server.
...
This preserves the image quality and retains some image attributes, such as the alpha channel (for non-jpeg images).
2012-11-19 15:50:30 +01:00
Matej Bukovinski
d30c2ae209
Improved background image decoding performance.
...
Tests on large images indicate an up to 4x improvement with regard to the time spent in decodedImageWithImage:.
2012-11-19 15:50:22 +01:00
Olivier Poitrey
022aa2146e
Fix a race condition ( fix #220 )
2012-11-14 00:59:40 +01:00
Olivier Poitrey
0920e7a001
Add activity indicator demo
2012-11-13 18:09:39 +01:00
Olivier Poitrey
0c1dd3c857
Fix CGBitmapContextCreate errors ( fix #204 )
2012-11-12 00:05:52 +01:00
Olivier Poitrey
152c75f437
Merge pull request #219 from SRandazzo/patch-1
...
Fix documentation directive
2012-11-09 06:25:59 -08:00
Salvatore Randazzo
bd72fe1034
Fix documentation directive
2012-11-09 09:05:49 -05:00
Olivier Poitrey
7b947163da
Copy all stored blocks
2012-11-09 11:05:18 +01:00
Olivier Poitrey
8f50bf6322
Set max concurrent to 2 by default
2012-11-08 17:58:22 +01:00
Olivier Poitrey
3109110dc0
Fix lazy copy/pasted typo
2012-11-07 17:15:11 +01:00
Olivier Poitrey
2eee009392
Add some doc
2012-11-07 02:04:55 +01:00
Olivier Poitrey
e343bdfb42
Add details on `finished` parameter
2012-11-06 18:32:15 +01:00
Olivier Poitrey
95be2aad35
Inline conditions are baaad
2012-11-06 18:28:14 +01:00
Olivier Poitrey
b29bb2e2e1
Do not call completed block on categories for intermediate progressive images
2012-11-06 18:24:57 +01:00
Olivier Poitrey
e5b0d22e64
Do not break category API (cf previous commit)
2012-11-06 18:22:18 +01:00
Olivier Poitrey
2904559f54
Fix progressive mode
2012-11-06 18:14:22 +01:00
Olivier Poitrey
1f0a8f4b13
Use the correct setter sementics for dispatch (fix 213)
2012-11-06 17:18:51 +01:00
Olivier Poitrey
541f3a1284
Fix cancel not cancelling connection
2012-11-06 14:04:12 +01:00
Olivier Poitrey
cceb56353c
Fix crash under iOS 6 when dispatch_release is called (see #213 )
2012-11-06 13:15:44 +01:00
Olivier Poitrey
651d8ff583
Serialize all background operations
2012-11-06 11:30:23 +01:00
Olivier Poitrey
326890b476
Fix disk image cache read not setting memory cache + ensure decodedImageWithImage never fail
2012-11-06 10:14:21 +01:00
Olivier Poitrey
b5bb74bf96
Ensure every data manipulation performed in NSURLConnection delegates are handled in the global background queue
2012-11-06 10:03:59 +01:00
Olivier Poitrey
bf1b946b9a
Fix double call to NSURLConnection start + wrong condition for low priority ( fix #212 )
2012-11-06 09:19:50 +01:00
Olivier Poitrey
ed690465d8
Ensure we're not decoding the image in the main thread
2012-11-06 03:31:32 +01:00
Olivier Poitrey
570965f6cf
Use dispatch_barrier to handle NSMutableDictionary thread unsafety instead of main thread dispatching
2012-11-06 03:31:03 +01:00
Olivier Poitrey
13210a6925
Use global low prio queue instead of a dedicated queue for caching I/Os
2012-11-06 03:01:16 +01:00
Olivier Poitrey
a8a9b12896
Do not use dispatch_io_write as it generate random crashes
...
Either it's buggy under iOS or I didn't use it the right way...
2012-11-06 02:50:36 +01:00
Olivier Poitrey
73df9d7281
Track leaks
2012-11-05 23:05:54 +01:00
Olivier Poitrey
78a4df12c6
Fix aggregation tracking urls not cleaned in case of cancellation
2012-11-05 21:10:18 +01:00
Olivier Poitrey
149afed476
Add progress block support to UIImageView category
2012-11-05 20:45:15 +01:00
Olivier Poitrey
f7d0f1d12f
Fix example app
2012-11-05 20:38:31 +01:00
Olivier Poitrey
d85d5833af
Fix fucked-up merge
2012-11-05 20:04:58 +01:00
Olivier Poitrey
8a55d97fc9
Prevent caching of responses by NSURLCache ( fix #211 )
2012-11-05 19:57:15 +01:00
Olivier Poitrey
df89ee44cd
Update podspec
2012-11-05 18:21:20 +01:00
Olivier Poitrey
efe65bfd3b
Fix source file headers
2012-11-05 18:21:19 +01:00
Olivier Poitrey
56a0eea941
Setup NSURLRequest
...
- Activate pipelineing
- Disable cookie support
- Add image/* Accept header to force image on servers handling content negociation
2012-11-05 18:21:19 +01:00
Olivier Poitrey
e91cbcf0aa
Fix wrong cache policy used ( fix #211 )
2012-11-05 17:54:31 +01:00
Olivier Poitrey
9a283273f1
Fix typo in license URL
2012-11-05 12:20:18 +01:00
Olivier Poitrey
4f2b5bf674
Add Licenses section
2012-11-04 17:48:20 +01:00
Olivier Poitrey
64a745f2fc
Add "How is SDWebImage better than X?" wiki link
2012-11-04 16:17:32 +01:00
Olivier Poitrey
f8798294ab
Remove outdated motivation section
2012-11-04 15:39:50 +01:00
Olivier Poitrey
535203d90c
Add who use it section
2012-11-04 15:17:32 +01:00
Olivier Poitrey
2227266c41
First beta of SDWebImage 3.0
...
This version is a rewrite of the lib using iOS 5.0 as minimum target.
The lib as thus been refactored to use blocks/GCD from the ground up.
As a consequence, all delegate code style has been removed. The result
is a lot less lines of code and more flexibility.
2012-11-04 10:09:10 +01:00
Olivier Poitrey
8963f996e9
Add cancelAll method ( fix #168 )
2012-11-04 01:52:09 +01:00
Olivier Poitrey
55fd4a1d77
Merge pull request #205 from triposo/send-downloader-with-notification
...
Send downloader as part of notification.
2012-11-03 16:53:08 -07:00
Olivier Poitrey
048bdbb751
Fix alpha handling in image decoder ( fix #204 )
2012-11-04 00:51:35 +01:00
Jure Žove
c609027314
Fixed Alpha chanel detection when decoding images.
2012-11-04 00:49:34 +01:00