On Mar 20, 2012, at 10:53 , Jens Alfke wrote: > > On Mar 19, 2012, at 10:16 PM, Rick Mann wrote: > >> What do I need to do to? I'm using >> -sendAsynchronousRequest:queue:completionHandler: >> So I can't set a delegate. > > If you want more control over credentials and certificate trust, you’ll need > to use the delegate API.
I had written a fairly elaborate wrapper around the delegate-based API so I could use blocks in a way similar to what the new call provides. It also returned the NSURLConnection object, and allowed canceling of a request. But I always felt like it was messy and possibly contained bugs; I was pretty happy to see Apple add their API (even if I couldn't use it to cancel a request). I just wish they'd thought it through a bit more. -- Rick > > —Jens > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com > > This email sent to rm...@latencyzero.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com