How to identify WHICH NSURLConnection did finish loading when there are multiple ones?
Posted
by RexOnRoids
on Stack Overflow
See other posts from Stack Overflow
or by RexOnRoids
Published on 2010-03-19T09:58:38Z
Indexed on
2010/03/19
10:01 UTC
Read the original article
Hit count: 494
Multiple NSURLConnections being started (in a single UIViewController) to gather different kinds of data. When they return (-connectionDidFinishLoading) I wanna do stuff with the data, depending on the type of data that has arrived. But one prob, HOW DO I KNOW WHICH NSURLConnection returned? I need to know so I can take action specific to the type of data that came. (Eg. display a twitter update if it was the twitter xml data)(Eg. display an image if it was a photo)
How do people usually solve this?
© Stack Overflow or respective owner