• 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: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved.


  • Subject: Re: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved.
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 16 May 2008 14:25:17 -0700


On 16 May '08, at 1:36 PM, email@hidden wrote:

I got this to work!
...
   NSError **myError;
   NSHTTPURLResponse **serverResponse;
...
self.smsXMLString = [NSString stringWithContentsOfFile:smsXMLPath encoding:NSUTF8StringEncoding error:myError];

If that's not crashing, it's only because it never got an HTTP error. Someone else already pointed out to you that the those types are wrong. What your code will do if an error occurs is try to write the NSError to a random memory location, either crashing or corrupting your state. Go and look up the earlier message if you want to see how to fix it.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved. (From: email@hidden)

  • Prev by Date: Re: Working through a problem...
  • Next by Date: Re: Dynamic message typing problem
  • Previous by thread: Re: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved.
  • Next by thread: The challenge for Cocoa's on-line documentation
  • Index(es):
    • Date
    • Thread