views:

42

answers:

1

I have a view that will be displaying downloaded images and text. I'd like to handle all the downloading asynchronously using ASIHTTPRequest, but I'm not sure how to go about notifying the view when downloads are finished...

If I pass my view controller as the delegate of the ASIHTTPRequest, and then my view is destroyed (user navigates away) will it fail gracefully when it tries to message my view controller because the delegate is now nil?

i.e. if i do this:

UIViewController *myvc = [[UIViewController alloc] init];
request.delegate = myvc;
[myvc release];

Do myvc, and request.delegate now == a pointer to nil?

This is the problem with being self-taught... I'm kinda fuzzy on some basic concepts.

Other ideas of how to handle this are welcome.

+3  A: 
e.James
Thank you very much for this answer. Very helpful. My current strategy is a shared download queue, but each controller removes its downloads from the queue if it is closed. Seems to be working well so far...
Kenny Winker