Re: NSAttributedString - initWithURL
Re: NSAttributedString - initWithURL
- Subject: Re: NSAttributedString - initWithURL
- From: Sherm Pendley <email@hidden>
- Date: Wed, 22 May 2002 00:33:08 -0400
On Tuesday, May 21, 2002, at 09:27 PM, Sebastian Frey wrote:
However, I don't know why the file at the path can't be decoded. I have
been able to get the data from the file at the URL easily enough like
this:
aString = [NSString stringWithContentsOfURL:theURL];
Using the very same URL.
That would indicate that theURL is valid, and that the network operation
is working as advertised.
The difference, then is that the working example is not parsing the
HTML, but simply stuffing the HTML source into a string. The example
that is *not* working is trying to parse the HTML.
So, I would guess that there's a problem with the HTML, that makes it
non-parsable. Have you tried validating it?
sherm--
Never put off until tomorrow what you can do today. There might be a law
against it by that time.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.