Re: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved.
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