Re: iOS app launching speed
Re: iOS app launching speed
- Subject: Re: iOS app launching speed
- From: Roland King <email@hidden>
- Date: Wed, 16 May 2012 09:08:53 +0800
On May 16, 2012, at 5:50 AM, Jens Alfke wrote:
>
> Async NSURLRequest, as already mentioned. It’s a little bit clunky to use by modern standards — I wish they’d add some nice block-based callbacks to it instead of making me implement yet another delegate class — but it works well, and it’s quite well documented by Apple and others.
>
> —Jens
+1
I eventually wrote a generic block-based delegate which fulfills 95% of my uses of NSURLConnection, I'm sure others have too. Just give it the NSURLRequest and a block to call on success or failure and off it goes. I'm hoping to see some more block-based callbacks creep into the next version of iOS (and OSX I guess), they are awesomely usable.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden