Forums

use XMLRPCConnection for an asynchronous connection

  1. Hi,

    I'm using your XML-RPC framework in my iPhone application. It works great, but now I need to fetch data via an asynchronous connection in order not to block the UI. I have been going through the NSURLConnection documentation and XMLRPCConnection class but I am very confused how to accomplish this.

    What I need is a XMLRPCResponse object returned by XMLRPCConnection sendSynchronousXMLRPCRequest method. I do not understand when and where to fetch a data object which is supposed to contain the response when connectionDidFinishLoading is called.

    Thanks for your help!

    Lex

  2. Hi,

    This forum is for supporting the iPhone application, not for code.

    The guys at Pragmatic Programming have a nice book on iPhone dev and if I recall correctly, they've got a section on handling async connections using the cocoa classes... It includes a set of code that you could use to try for yourself... You can buy this book in PDF form for a reasonable price and have the code examples in your hands nearly immediately.

    Try this url...

    http://pragprog.com/titles/amiphd/iphone-sdk-development

    The chapter you're interested in is probably the one entitled "Connecting to the Internet"

    Good luck!

Topic Closed

This topic has been closed to new replies.


About this Topic