views:

548

answers:

2

The Situation
In my app, I am currently downloading an mp3 file (to docs directory) using [NSData dataWithContentsOfURL:URL], a method that works fine, but ties down the CPU, dissallowing screen updates of download status. So, I want to download using a different method so that I can update the screen WHILE downloading to alert the user that the download has begun.

Question
How do I set up my viewController to use NSURLRequest or NSURLConnection to download an mp3 file? (please give source)

A: 

This is not a 'please give source' kind of forum.

Why don't you start with Using NSURLConnection and ask a followup question here if you need to.

St3fan
whatever, dude. Pointless answer.
RexOnRoids
+2  A: 

Use "NSURLConnection asynchronously" search for the term and you'll find source. Or just NSURLConnection.

For example:

http://stackoverflow.com/questions/1959243/nsurlconnection-nsurlrequest-proxy-for-asynchronous-web-service-calls

Jordan
cool, thanks dude.
RexOnRoids