views:

228

answers:

1

Hi, I've digged through a lot of topics regarding didReceiveData: method not being called (and the solutions is to set appropriate cachePolicy and implement willCacheResponse delegate method...) And so I did... And now I get didReceiveData message each time anything comes from the server. BUT: Unfortunately I don't get didReceiveData at the VERY FIRST TIME the server responds.

In other words, the first time I get "didReceiveData" message there are 2 response objects in "data" parameter. Every response from the server following that moment is OK.

Any help? :-) Big thx in advance.

A: 

Just needed a clarification; Are you using any threading in your application?

If Yes, then the thread which creates the connection should receive the response from the server. The other threads will not identify the response which is returned for some other thread...

Hope this helps

sandesh