Commit graph

61 commits

Author SHA1 Message Date
Mattt Thompson
ff37bb59f8 Merge branch 'master' into 1.0RC2
Conflicts:
	AFNetworking/AFHTTPClient.m
	AFNetworking/AFHTTPRequestOperation.m
	AFNetworking/AFJSONRequestOperation.m
	AFNetworking/AFNetworkActivityIndicatorManager.m
	AFNetworking/AFURLConnectionOperation.h
2012-09-14 10:30:25 -07:00
Mattt Thompson
edb0830128 Removing references to AFHTTPClientOperation protocol in documentation 2012-08-31 09:13:18 -07:00
Steven Fisher
eafbfec11c Fixes warning about using == on floats.
If the value changes from near to 2.0 to some other near 2.0, it's fine to recalculate.

Thus, use #pragma clang diagnostic to explicitly turn off the float-equal warning.
2012-07-24 12:36:25 -07:00
Peter Steinberger
fefd1a77ff don't use __weak for completionBlocks. (Issue #414)
We nil out the completionBlock manually in AFURLConnectionOperation. Using __weak here potentially doesn't call the set completion blocks.
Restores iOS4 compatibility. Also shortens inline ifs with a ternary conditional(?:).
2012-07-16 19:21:30 +02:00
Mattt Thompson
f1b3101a63 First pass at converting to ARC 2012-06-26 09:14:52 -07:00
Mattt Thompson
9b515d4ebe Code reformatting and adding conditional callback queue dispatch to UIImage callback 2012-06-09 09:52:28 -04:00
Sergey Gavrilyuk
91d4614028 in case there is an image processing block, success block should be called on the same queue as without one. 2012-06-08 15:44:42 -04:00
Mattt Thompson
f02c501e93 [Issue #347] Removing deprecated cacheName parameter in AFImageRequestOperation 2012-05-25 14:15:12 -07:00
Mattt Thompson
701a60a10f Merge branch 'master' into experimental-pause-resume
Conflicts:
	AFNetworking/AFHTTPRequestOperation.h
	AFNetworking/AFHTTPRequestOperation.m
2012-04-24 20:27:37 -07:00
Mattt Thompson
3124db42cd Stashing first attempt to simplify dispatching 2012-04-23 20:58:14 -07:00
Mattt Thompson
da7d1c8c11 [Issue #296] Dispatching image processing asynchronously to background queue 2012-04-14 21:42:18 -07:00
Patrick Hernandez
7c603a9fad Merge branch 'master' into experimental-dispatchgroup 2012-04-09 00:59:12 -05:00
Patrick Hernandez
57da89896c Update to support batch completion block firing after all dependent completion blocks.
- Added dispatch group property to AFHTTPRequestOperation
- Modified all request objects to call dispatch_group_async in completion blocks
- Added a dispatch semaphore for thread safety of the dispatch group property
- Added dispatch_group_enter and dispatch_group_leave calls to ensure requests are always in the group until the completion block finishes.
- Added an override for setCompletionBlock to call dispatch_group_leave so that subclasses do not need the call in each completion block.
- Modified enqueueBatchOfHTTPRequestOperations to now dispatch_group_notify in the NSBlockOperation completion block
2012-04-08 22:31:35 -05:00
Mattt Thompson
da1acf5a56 Merge branch 'master' into experimental-pause-resume
Conflicts:
	AFNetworking/AFHTTPRequestOperation.h
	AFNetworking/AFURLConnectionOperation.h
2012-04-08 15:28:58 -07:00
Peter Steinberger
ed4c558755 remote obsolete KVO change calls.
See http://petersteinberger.com/blog/2012/dont-call-willchangevalueforkey/.

I didn't remove the call in the AFNetworkActivityIndicatorManager, since I already removed this in my other pull request.
2012-04-06 01:46:58 -07:00
Mattt Thompson
ebfbbd198a Constructing image in background queue 2012-03-12 22:04:54 -07:00
Mattt Thompson
ac20e02af3 Constructing image in background queue 2012-03-12 20:23:41 -07:00
Mattt Thompson
692f4ca90e Removing unused overrided implementation of HTTPRequestOperationWithRequest:success:failure: in AFImageRequestOperation 2012-03-03 13:20:51 -08:00
Mattt Thompson
8bfee9e910 Refactoring +canProcessRequest: and content type acceptability 2012-03-03 13:19:53 -08:00
Mattt Thompson
5b7a2cb05f Using class method swizzling to dynamically modify class method values for acceptable status codes and content types 2012-03-02 10:42:24 -08:00
Mattt Thompson
b723e5b75c Removing AFInternal category, opting instead to inline success and failure dispatch
Minor refactoring and reformatting of AFHTTPRequest subclasses

Changing AFXMLRequestOperation error to XMLError to match rest of subclasses
2012-02-20 20:22:46 -08:00
Mattt Thompson
64555e5dff Merge branch 'custom-callback-queues' of https://github.com/steipete/AFNetworking into steipete-custom-callback-queues 2012-02-20 19:42:36 -08:00
Michael Schneider
babe84ec1a Fixed missing comma in the defaultAcceptableContentTypes of the AFImageRequestOperation 2012-02-10 09:10:08 +01:00
Peter Steinberger
800d05181d Simplify dispatchFailureBlock
As error is overridden to always return the custom error object we can
omit the extra error: parameter in dispatchFailureBlock, making the
code even simpler.
2012-02-08 15:04:29 -08:00
Peter Steinberger
30a5cea4fc Added methods to simplify calling the success/failure handlers. 2012-02-06 13:43:43 -08:00
Peter Steinberger
feaf0814c4 add support for setting custom success/failure callback queues. Defaults to main queue if nothing set. 2012-02-06 13:29:00 -08:00
Mattt Thompson
b782991065 Adding check for responseData having non-zero length for response object methods in AFHTTPRequestOperation subclasses 2012-01-20 11:03:08 -08:00
Mattt Thompson
3ff5aafab7 Removing AFImageCache from public API, embedding it instead in UIImageView+AFNetworking implementation 2012-01-19 11:58:17 -08:00
Mattt Thompson
0e93cf0840 [Issue #110] Fixing orientation issues by using UIImage imageOrientation value rather than assuming UIImageOrientationUp 2011-11-21 11:19:25 -06:00
Mattt Thompson
5b5b32c5b8 Refactoring AFImageRequestOperation to use setCompletionBlockWithSuccess:failure 2011-11-21 10:23:36 -06:00
David Keegan
bfb6b35a3e Update the NSImage code to just use an NSBitmapImageRep for determining the correct pixel width and height
Thanks to @indragiek for the tip.
2011-11-18 09:59:29 -08:00
David Keegan
fbf9186d10 Adding code to set the responceImage to the correct size. 2011-11-17 23:07:40 -08:00
Mattt Thompson
fdf217e8ab [Issue #103] Adding imageScale property on AFImageRequestOperation, to allow override of default behavior on iOS to automatically scale images for retina displays 2011-11-11 10:50:00 -06:00
Mattt Thompson
180fb9bb03 Cache image data, as NSPurgeableData, rather than UIImage/NSImage 2011-10-25 08:50:08 -05:00
Mattt Thompson
53d61e7eb2 Adding pre-processor directives to conditionally compile Mac equivalent of UIKit-dependent APIs 2011-10-11 10:39:41 -05:00
Mattt Thompson
7e4b224154 Cleaning up merge with experimental-0.7 2011-10-11 10:05:07 -05:00
Mattt Thompson
b7724922c4 Refactoring image request operation 2011-10-10 13:06:12 -05:00
Mattt Thompson
b7564e9f5a Refactoring implementation of AFHTTPRequest subclasses to fulfill AFHTTPClientOperation protocol 2011-10-10 10:41:29 -05:00
Mattt Thompson
c2be31d4fa First implementation of protocol for AFHTTPClient to register classes to automatically determine the appropriate operation to create
Wrapping AFURLConnectionOperation -setCompletionBlock: with blockSelf release pattern to avoid retain cycle
2011-10-05 15:44:51 -05:00
Mattt Thompson
2c478758a2 Adding Property List request operation
Refactoring implementation of AFHTTPRequestOperation and subclasses
2011-10-05 14:14:52 -05:00
Mattt Thompson
94f08de1d5 Adding mime types for other UIImage-supported file-types 2011-10-05 12:52:28 -05:00
Mattt Thompson
ccdc5f2d9b Approaching a reasonable design for restructuring AFHTTPRequestOperation and subclasses 2011-10-05 12:36:45 -05:00
Mattt Thompson
b85c59516d Don't execute completion block if cancelled 2011-10-04 00:41:32 -05:00
Mattt Thompson
561df45eb7 Initial working implementation of new candidate class structure 2011-10-04 00:13:12 -05:00
Mattt Thompson
7a2cad0a56 Minor revisions to documentation, mostly around style and conventions 2011-09-22 11:31:01 -05:00
Mattt Thompson
2a8cce88a5 Changing AFImageCache APIs to use URLs rather than NSURLRequests
Completing documentation for AFImageCache
2011-09-21 23:46:00 -05:00
Mattt Thompson
3512b3b606 Dispatching callbacks to main thread for Image requests 2011-09-21 16:52:22 -05:00
Mattt Thompson
db4c852e3d [Issue #33] Changing return type of class method object contructors from id to an actual instance of that class 2011-09-21 15:33:20 -05:00
Mattt Thompson
50014afa22 Refactoring image request API to remove unnecessary configuration, and focus the design goals of those classes 2011-09-16 22:40:52 -05:00
Mattt Thompson
390c51a30d Merge branch 'gzip-compression-experimental' into experimental-gcd-processing
Conflicts:
	AFNetworking/AFHTTPRequestOperation.m
	AFNetworking/AFImageRequestOperation.m
	AFNetworking/AFJSONRequestOperation.m
2011-08-14 20:06:03 -05:00