Is there a way to assign some sort of delegate object when
[[NSData alloc] initWithContentsOfUrl:... options:... errorPtr:...]
is called so that I can monitor percentage complete of a download or is the best way to handle this sort of thing through the use of the asynchronous NSURLConnection stuff?
NSData initWithContentsOfUrlis a synchronized call that is not meant to provide progress info. You should useNSURLConnectionasynchronized call instead.If you want to animate a
UIProgressView, you should consider usingASIHTTTPRequestlibrary. It’s a very neat library.