The following concerns an iPhone app.
I want to use a singleton to handle an asynchronous URL request. I've got that covered but what is the best coding practice way to tell the singleton where to send the response when it is received? I need the response to be returned to the class which originally called the singleton.
Could I pass a pointer to the calling class to the singleton, along with the delegate method (of the calling class) to call when the response is received?
Thanks