views:

688

answers:

1

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?

+3  A: 

NSData initWithContentsOfUrl is a synchronized call that is not meant to provide progress info. You should use NSURLConnection asynchronized call instead.

If you want to animate a UIProgressView, you should consider using ASIHTTTPRequest library. It's a very neat library.

notnoop
Yep, that looks awesome. Thanks.
quadelirus