• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Persistent Connection to Web Server in cocoa, emulating AJAX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Persistent Connection to Web Server in cocoa, emulating AJAX


  • Subject: Re: Persistent Connection to Web Server in cocoa, emulating AJAX
  • From: Jack Carbaugh <email@hidden>
  • Date: Thu, 23 Oct 2008 10:09:37 -0400

the process is as follows ...

a request/command is sent to a URL which processes the request.

The result is then sent out of a "responder" at another URL.

So what i'm wanting to do, i suppose, is to continually poll the "responder" URL and process it's results.


On Oct 23, 2008, at Thu-10 /23 /08-9:25 AM, Jason Stephenson wrote:

Jack Carbaugh wrote:
What is the best way to emulate, with cocoa, an AJAX persistent connection to a web server.

There is no persistent connection to a web server. HTTP does not preserve state between discrete requests. This is why cookies were invented and session variables stored on the server.


Well-implemented AJAX applications may give the appearance of persistence, but they are still initiating a discrete XMLHTTPRequest any time they need new data from the server.

I've reviewed NSURLConnection, but am not sure if it what i need.

You might want to use WebKit and JavaScript. However, I can't make any useful suggestions without knowing more about what you really want to achieve.


Jason

Thank you!
Jack
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Persistent Connection to Web Server in cocoa, emulating AJAX
      • From: Jason Stephenson <email@hidden>
References: 
 >Persistent Connection to Web Server in cocoa, emulating AJAX (From: Jack Carbaugh <email@hidden>)
 >Re: Persistent Connection to Web Server in cocoa, emulating AJAX (From: Jason Stephenson <email@hidden>)

  • Prev by Date: Re: When does Cocoa fall apart? (Run loops)
  • Next by Date: Re: CGPoint wrapper?
  • Previous by thread: Re: Persistent Connection to Web Server in cocoa, emulating AJAX
  • Next by thread: Re: Persistent Connection to Web Server in cocoa, emulating AJAX
  • Index(es):
    • Date
    • Thread