Hi all.
In my iPhone application, i am making use of
NSURLConnection's (id) initWithRequest: (NSURLRequest*)request delegate: (id)delegate three times sequentially to connect to three xml files.
problem is that i am making use of the info from first URL to connect to second URL and info from second URL to connect to thrid and so on..
But as the above method is parsing in thread-model by default, the second connection is tryiong to establish befor the first one get connected...
All three connection are three separate lines in my program...
How to make the first connection to do things before connecting to second?
I mean how to change the thread beahaviour of the above method??
Thanks
In my iPhone application, i am making use of
NSURLConnection's (id) initWithRequest: (NSURLRequest*)request delegate: (id)delegate three times sequentially to connect to three xml files.
problem is that i am making use of the info from first URL to connect to second URL and info from second URL to connect to thrid and so on..
But as the above method is parsing in thread-model by default, the second connection is tryiong to establish befor the first one get connected...
All three connection are three separate lines in my program...
How to make the first connection to do things before connecting to second?
I mean how to change the thread beahaviour of the above method??
Thanks