Returning Values from Server

Discussion in 'Mac Programming' started by sivaprakash, May 10, 2011.

  1. macrumors member

    Joined:
    Mar 10, 2011
    Location:
    Chennai, India
    #1
    Hi

    I want to return values from my server application (http://www.cocoadev.com/index.pl?DistributedObjectsSampleCode) to my client in an Asynchronous environment that is Client will not wait for that message any time. Can I use "NSDistributedNotificationCenter" to pass the value back and put it Queue so that Client can read it and show in some GUI.

    Is there any other best mechanisms are out there?
     
  2. macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #2
    Why not just use NSURLConnection ?

    Seems to have asynchronous loads and delegate methods to let you know when its done (AKA time to parse and update the gui)
     

Share This Page