Permalink
Commits on Apr 25, 2012
  1. Updating podspec to 0.9.2

    mattt committed Apr 25, 2012
Commits on Apr 24, 2012
  1. Merge pull request #294 from kirsplatrick/callbackQueue-fix

    Mattt Thompson committed Apr 24, 2012
    Fixed crash in special case for custom callback queues
  2. Merge pull request #310 from cahn/experimental-try-catch-removal

    Mattt Thompson committed Apr 24, 2012
    Try-catch in Objective-C should not be used to recover from exceptions
Commits on Apr 19, 2012
  1. Try-catch in Objective-C should not be used to recover from exceptions

    cahn committed Apr 19, 2012
    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.
Commits on Apr 15, 2012
  1. Merge pull request #298 from bONchON/master

    Mattt Thompson committed Apr 15, 2012
    Fixing race condition in UIImageView+AFNetworking that caused images to not load on occasion.
  2. Merge pull request #302 from kirsplatrick/AFHTTPRequestOperation-leak…

    Mattt Thompson committed Apr 15, 2012
    …-fix
    
    Fixed a leak of AFHTTPRequestOperation in setCompletionBlock:
Commits on Apr 14, 2012
  1. Fixed a leak of AFHTTPRequestOperation in setCompletionBlock:

    kirsplatrick committed Apr 14, 2012
    - 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. since there is no guarantee that

    bogardon committed Apr 13, 2012
    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. Merge pull request #291 from steipete/fix-cache-policy

    Mattt Thompson committed Apr 13, 2012
    The cache policy set here was from the WRONG enum.
  3. Merge pull request #288 from kirsplatrick/experimental-dispatchgroup

    Mattt Thompson committed Apr 13, 2012
    Update to support batch completion block firing after all dependent completion blocks.
Commits on Apr 11, 2012
  1. Fixed crash in special case for custom callback queues

    kirsplatrick committed Apr 11, 2012
    - 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. The cache policy set here was from the WRONG enum.

    steipete committed Apr 11, 2012
    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. Optimized how enqueueing operations works

    kirsplatrick committed Apr 9, 2012
    - 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
  2. removing the .gitignore

    kirsplatrick committed Apr 9, 2012
  3. Update to support batch completion block firing after all dependent c…

    kirsplatrick committed Apr 9, 2012
    …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. [Issue #268] Reverting to cacheing UIImages rather than NSPurgeableDa…

    mattt committed Apr 8, 2012
    …ta-wrapped image data
  2. Merge pull request #283 from steipete/remove-unneeded-kvo-calls

    Mattt Thompson committed Apr 8, 2012
    Remove obsolete manual KVO will/did change calls.
  3. Merge branch 'lock-improvements' of https://github.com/steipete/AFNet…

    mattt committed Apr 8, 2012
    …working into steipete-lock-improvements
  4. Merge pull request #281 from steipete/example-fixes

    Mattt Thompson committed Apr 8, 2012
    Small fix for the tweet example.
Commits on Apr 6, 2012
  1. remote obsolete KVO change calls.

    steipete committed Apr 6, 2012
    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. Use lightweight locking for activityCount

    steipete committed Apr 6, 2012
    Also exposes isNetworkActivityIndicatorVisible which now is KVO observable.
Commits on Apr 5, 2012