• 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: Jason Stephenson <email@hidden>
  • Date: Thu, 23 Oct 2008 09:25:32 -0400

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: Jack Carbaugh <email@hidden>
References: 
 >Persistent Connection to Web Server in cocoa, emulating AJAX (From: Jack Carbaugh <email@hidden>)

  • Prev by Date: Autocomplete from an array of dictionaries
  • Next by Date: Re: When does Cocoa fall apart? (Run loops)
  • Previous by thread: 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