Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 25, 2012
  1. @mattt

    Updating podspec to 0.9.2

    mattt authored
  2. @mattt
  3. @mattt
Commits on Apr 24, 2012
  1. @mattt
  2. @mattt
  3. @mattt

    Merge pull request #294 from kirsplatrick/callbackQueue-fix

    mattt authored
    Fixed crash in special case for custom callback queues
  4. @mattt

    Merge pull request #310 from cahn/experimental-try-catch-removal

    mattt authored
    Try-catch in Objective-C should not be used to recover from exceptions
Commits on Apr 19, 2012
  1. @cahn

    Try-catch in Objective-C should not be used to recover from exceptions

    cahn authored
    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.
  2. @mattt
Commits on Apr 15, 2012
  1. @mattt

    Merge pull request #298 from bONchON/master

    mattt authored
    Fixing race condition in UIImageView+AFNetworking that caused images to not load on occasion.
  2. @mattt
  3. @mattt
  4. @mattt

    Merge pull request #302 from kirsplatrick/AFHTTPRequestOperation-leak…

    mattt authored
    …-fix
    
    Fixed a leak of AFHTTPRequestOperation in setCompletionBlock:
Commits on Apr 14, 2012
  1. @kirsplatrick

    Fixed a leak of AFHTTPRequestOperation in setCompletionBlock:

    kirsplatrick authored
    - Added a block object to reference self in the completion block
    - Added a pointer to the onceToken to be used in the completion block
Commits on Apr 13, 2012
  1. @bogardon

    since there is no guarantee that

    bogardon authored
    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.
  2. @mattt

    Merge pull request #291 from steipete/fix-cache-policy

    mattt authored
    The cache policy set here was from the WRONG enum.
  3. @mattt

    Merge pull request #288 from kirsplatrick/experimental-dispatchgroup

    mattt authored
    Update to support batch completion block firing after all dependent completion blocks.
Commits on Apr 11, 2012
  1. @kirsplatrick

    Fixed crash in special case for custom callback queues

    kirsplatrick authored
    - 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
  2. @steipete

    The cache policy set here was from the WRONG enum.

    steipete authored
    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.
Commits on Apr 9, 2012
  1. @kirsplatrick
  2. @kirsplatrick

    Optimized how enqueueing operations works

    kirsplatrick authored
    - Removed the NSBlockOperation as it was not longer needed for completion block to be fired appropriately
    - Added a safety call to setCompletionBlock in AFHTTPRequestOperation to ensure that dispatch_group_leave would be called
  3. @kirsplatrick

    removing the .gitignore

    kirsplatrick authored
  4. @kirsplatrick

    Update to support batch completion block firing after all dependent c…

    kirsplatrick authored
    …ompletion 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
Commits on Apr 8, 2012
  1. @kirsplatrick
  2. @mattt
  3. @mattt
  4. @mattt
  5. @mattt

    Merge pull request #283 from steipete/remove-unneeded-kvo-calls

    mattt authored
    Remove obsolete manual KVO will/did change calls.
  6. @mattt
  7. @mattt
  8. @mattt

    Merge pull request #281 from steipete/example-fixes

    mattt authored
    Small fix for the tweet example.
Commits on Apr 6, 2012
  1. @steipete

    remote obsolete KVO change calls.

    steipete authored
    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.
  2. @steipete
  3. @steipete

    Use lightweight locking for activityCount

    steipete authored
    Also exposes isNetworkActivityIndicatorVisible which now is KVO observable.
Commits on Apr 5, 2012
  1. @steipete
Something went wrong with that request. Please try again.