• 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: Can I use NSString classes SYNCHRONOUSLY?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I use NSString classes SYNCHRONOUSLY?


  • Subject: Re: Can I use NSString classes SYNCHRONOUSLY?
  • From: Dave Dribin <email@hidden>
  • Date: Wed, 14 May 2008 17:21:26 -0500

On May 14, 2008, at 5:11 PM, Jens Alfke wrote:
On 14 May '08, at 10:03 AM, email@hidden wrote:
Essentially I want to mimic the Java HTTPConnect example I gave.
I also want to be able to change the request property to POST, as in
the Java equivalent: connection.setRequestMethod(HttpConnection.POST);

If you're doing HTTP, use NSURLConnection instead of trying to re- invent your own HTTP support on top of the basic stream classes.
It has a class method that does synchronous requests.

Agreed. You can use -[NSMutableURLRequest setHTTPMethod:] to use POST.

-Dave

_______________________________________________

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


References: 
 >Re: Can I use NSString classes SYNCHRONOUSLY? (From: email@hidden)
 >Re: Can I use NSString classes SYNCHRONOUSLY? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Next by Date: Re: Setting default application for URL scheme
  • Previous by thread: Re: Can I use NSString classes SYNCHRONOUSLY?
  • Next by thread: A file's icon in daemon?
  • Index(es):
    • Date
    • Thread