Commit graph

731 commits

Author SHA1 Message Date
mattchen
31ccb23f69 Minor fix for tornado upload support 2012-05-06 17:12:20 +08:00
Francois Lambert
8ce55df371 Add missing block parameter name preventing auto-complete to work
When function name is auto-completed and the imageProcessingBlock stub is created, it was missing the UIImage* parameter name.
2012-05-03 18:50:32 -04:00
Mattt Thompson
7a57210e6d [Issue #295] Fixing documentation for UIImageView+AFNetworking to use correct enum value for NSURLRequest cache policy 2012-05-03 07:47:00 -07:00
Mattt Thompson
8f7ad20117 Merge pull request #325 from tewha/patch-1
Update AFNetworking/AFHTTPRequestOperation.m
2012-05-03 07:40:12 -07:00
Mattt Thompson
c1760d30d0 Merge pull request #326 from tewha/patch-2
Update header comment to match file name
2012-05-03 07:39:35 -07:00
Steven Fisher
00a6d249e4 Update header comment to match file name 2012-05-02 11:08:01 -07:00
Steven Fisher
021fe2b463 Update AFNetworking/AFHTTPRequestOperation.m 2012-05-02 10:13:03 -07:00
Mattt Thompson
2f79428e34 [Issue #323] Close existing outputStream in setOutputStream: 2012-05-01 08:04:29 -07:00
Mattt Thompson
3ee1fefeac Minor formatting 2012-04-30 10:49:00 -07:00
Zachary Waldowski
25620fe839 Restore iOS 4.0 compatibility.
Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com>
2012-04-28 18:00:28 -04:00
Mattt Thompson
904d6ba50d Merge pull request #321 from tomwans/master
Fix an issue where _skippedCharacterSet would get dealloc'd early
2012-04-28 12:41:48 -07:00
Mattt Thompson
7ad92ea9ea Adding note about iOS < 4.3 deprecation 2012-04-27 16:55:34 -07:00
Tom Wanielista
02c849bdc8 Fix an issue where the skipped character set points to bad memory. 2012-04-27 11:45:47 -07:00
Mattt Thompson
c77a001e73 [Issue #320] Documenting iOS 4.3 minimum requirement for new metaprogramming functions 2012-04-27 07:36:46 -07:00
Mattt Thompson
3413dedb59 Fixing JSON request example in introduction
Fixing link to Gowalla for iPhone

Adding link to Stack Overflow

Adding NextiveJson to list of supported JSON libraries
2012-04-25 10:06:02 -07:00
Mattt Thompson
8602c9f6a1 Updating CHANGES up to 1.0RC1 2012-04-25 09:56:28 -07:00
Mattt Thompson
18f5095d2e Updating CHANGES up to 0.9.2 2012-04-25 09:48:25 -07:00
Mattt Thompson
f457dcdcb9 Updating CHANGES up to 0.9.1 2012-04-25 09:35:40 -07:00
Mattt Thompson
17ee2b4cf0 Merge pull request #316 from dismory/dev
Fix the duplicated `AFJSONDecode()` calling that cause message sending t...
2012-04-25 09:00:50 -07:00
dismory
b76b28f4b3 Fix the duplicated AFJSONDecode() calling that cause message sending to deallocated NSError object 2012-04-25 16:02:29 +08:00
Mattt Thompson
ce23a0757b [Issue #274] Fixing crash when creating network reachability when baseURL is nil 2012-04-24 22:22:32 -07:00
Mattt Thompson
51bd23de8c Updating podspec to 1.0RC1 2012-04-24 22:01:47 -07:00
Mattt Thompson
948628e11d Merge branch 'experimental-1.0RC1' 2012-04-24 22:00:46 -07:00
Mattt Thompson
04d976d12f Updating podspec to 0.9.2 2012-04-24 21:59:59 -07:00
Mattt Thompson
346799dc8b Adding documentation for pause/resume 2012-04-24 21:28:06 -07:00
Mattt Thompson
4c8634dfce Removing AFDownloadRequestOperation 2012-04-24 20:43:46 -07:00
Mattt Thompson
7e16e13a3a Merge branch 'experimental-1.0RC1' into experimental-pause-resume
Conflicts:
	AFNetworking/AFURLConnectionOperation.h
	AFNetworking/AFURLConnectionOperation.m
2012-04-24 20:42:59 -07:00
Mattt Thompson
7697140bf9 Merge branch 'master' into experimental-1.0RC1
Conflicts:
	AFNetworking/AFHTTPRequestOperation.h
	AFNetworking/AFHTTPRequestOperation.m
2012-04-24 20:36:43 -07:00
Mattt Thompson
ac67d7e918 Merge branch 'steipete-pause-resume' into experimental-pause-resume 2012-04-24 20:28:08 -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
77837c48de Run batch callbacks on success dispatch queue, falling back on main 2012-04-24 20:24:21 -07:00
Mattt Thompson
bbacf3d7c6 Removing unnecessary initialization of completionBlock in init 2012-04-24 20:06:47 -07:00
Mattt Thompson
8a93284ca4 Ah, the wonderful feeling of deleting significant chunks of code 2012-04-23 21:14:27 -07:00
Mattt Thompson
3124db42cd Stashing first attempt to simplify dispatching 2012-04-23 20:58:14 -07:00
Mattt Thompson
4a354fda24 Merge pull request #294 from kirsplatrick/callbackQueue-fix
Fixed crash in special case for custom callback queues
2012-04-23 20:22:19 -07:00
Mattt Thompson
b91e2eb87f Merge pull request #310 from cahn/experimental-try-catch-removal
Try-catch in Objective-C should not be used to recover from exceptions
2012-04-23 20:20:41 -07:00
Charles T. Ahn
c0bdc5db95 Try-catch in Objective-C should not be used to recover from exceptions
http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Exceptions/Articles/ExceptionsAndCocoaFrameworks.html#//apple_ref/doc/uid/TP40009045-SW1

Relevant Quote:
  "The Cocoa frameworks are generally not exception-safe. The general
  pattern is that exceptions are reserved for programmer error only, and
  the program catching such an exception should quit soon afterwards."

More discussion here:
http://stackoverflow.com/questions/324284/how-to-throw-an-exception-in-objective-c-cocoa

Given all this, prefer a crash on the background thread.
2012-04-19 13:17:56 -07:00
Mattt Thompson
9adb586a82 [Issue #308] Fixing crash caused by attempting to cache invalid or nil image 2012-04-19 10:31:45 -05:00
Mattt Thompson
94d6a6c236 Merge pull request #298 from bONchON/master
Fixing race condition in UIImageView+AFNetworking that caused images to not load on occasion.
2012-04-14 21:49:42 -07:00
Mattt Thompson
bf6e45eac9 Merge branch 'master' of github.com:AFNetworking/AFNetworking 2012-04-14 21:42:25 -07:00
Mattt Thompson
da7d1c8c11 [Issue #296] Dispatching image processing asynchronously to background queue 2012-04-14 21:42:18 -07:00
Mattt Thompson
c4b5772431 Merge pull request #302 from kirsplatrick/AFHTTPRequestOperation-leak-fix
Fixed a leak of AFHTTPRequestOperation in setCompletionBlock:
2012-04-14 19:07:12 -07:00
Patrick Hernandez
3263f06edb Fixed a leak of AFHTTPRequestOperation in setCompletionBlock:
- Added a block object to reference self in the completion block
- Added a pointer to the onceToken to be used in the completion block
2012-04-14 15:16:14 -05:00
John Wu
ec3b922288 since there is no guarantee that
cancelling a request => success/fail block will not be called,
you shouldn't nil out a request unless it corresponds to the correct URL.
Essentially, this fixes the problem where images are sometimes not loaded.
2012-04-13 11:04:13 -07:00
Mattt Thompson
9a07a953a7 Fixing pragma mark label 2012-04-13 08:37:04 -07:00
Mattt Thompson
673e70525a Merge pull request #291 from steipete/fix-cache-policy
The cache policy set here was from the WRONG enum.
2012-04-12 20:04:00 -07:00
Mattt Thompson
23763688de Merge pull request #288 from kirsplatrick/experimental-dispatchgroup
Update to support batch completion block firing after all dependent completion blocks.
2012-04-12 19:31:52 -07:00
Patrick Hernandez
1e78a5b2f9 Fixed crash in special case for custom callback queues
- Added a line for setting _successCallbackQueue to NULL when releasing the call back queue in the setter
- Added a line for setting _failureCallbackQueue to NULL when releasing the call back queue in the setter
2012-04-11 18:37:53 -05:00
Peter Steinberger
dec3c9a03b The cache policy set here was from the WRONG enum.
So NSURLCacheStorgeNotAllowed has the value 2, which maps to NSURLRequestReturnCacheDataElseLoad. I'm not sure why this is here in the first place, but the correct enum is of the type NSURLRequestCachePolicy.
2012-04-10 19:32:30 -07:00
Mattt Thompson
ddfb00cc44 Merge branch 'experimental-pause-resume' of https://github.com/steipete/AFNetworking into steipete-pause-resume 2012-04-09 21:40:49 -07:00