12 Commits

Author SHA1 Message Date
Garrett Moon
ded2e07dd3 Add support for retrying and reduce default timeout. (#215)
* Add support for retrying and reduce default timeout.

* Return HTTP error codes >= 400. Don't retry when failure is sure to occur again.

* Add missing nullability

* Use NSInteger
2016-07-15 16:18:58 -07:00
Wendy Lu
0e81f77d16 Have PINProgressiveImage pass back the quality of the current progressive image (#185)
* Have PINProgressiveImage pass back the quality of the current progressive image
* fix
* Check for nil for imageProgress pointer
* Rename some variables
* Rename a bunch of things
* Update comment
2016-04-13 07:42:37 -07:00
Garrett Moon
7c31744e31 Switch to alternative representation 2016-03-28 17:08:53 -07:00
Garrett Moon
cf7a88fe20 Added comments 2016-02-23 11:11:13 -08:00
Garrett Moon
dea281bed6 All access to callback should be done outside async 2016-02-23 11:09:53 -08:00
Garrett Moon
29b0b4ac65 Fixes a crash in task callbacks
While all methods on tasks are called within the manager's lock,
dispatching to another queue obviously means the manager may not
be locked anymore.

I also moved calling progress download callbacks to the download
task so it's similar to progress image.

Hopefully these issues have been fixed, but it leads me to believe
a better architecture would be to make the tasks immutable by the
manager and have the tasks manage a lock on themselves. I'll need
to think about that more.
2016-02-23 11:01:56 -08:00
Garrett Moon
ae91afe047 Merge branch 'feature/add-download-progress' of https://github.com/maicki/PINRemoteImage into maicki-feature/add-download-progress 2016-02-10 18:16:45 -08:00
Michael Schneider
e2f8f67c1d Change progress block name to progressImage 2016-02-10 13:54:00 -08:00
Garrett Moon
dd3738bc4a Priority is only available on iOS 8 and above. 2016-02-09 15:31:18 -08:00
Michael Schneider
8df9dc00c6 Add support for OS X to library
Mapping generic classes like PINImage, PINImageView and PINButton to the equivalent UIKit or AppKit classes. Throughout the framework use these mappings instead of the concrete UIKit / AppKit names. Furthermore we provide a category on NSImage that is adding methods that are not available on NSImage but on UIImage.
2016-01-04 17:39:50 +01:00
Garrett Moon
7e6d5e439c add PINRemoteImageResultTypeProgress 2015-08-26 13:46:26 -07:00
Garrett Moon
9d2bd31f95 1.0 2015-07-22 17:29:31 -07:00