Re: TextView from HTML with embedded images
Re: TextView from HTML with embedded images
- Subject: Re: TextView from HTML with embedded images
- From: David Sinclair <email@hidden>
- Date: Mon, 23 Sep 2002 10:54:31 -0700
Thanks, that extra parameter did the trick... mostly. It doesn't load
the images when the page is first displayed, but if it is reloaded
after a little while, they appear. So it must begin loading them after
the page is displayed (or that init method is called), so they're
cached for a subsequent call.
So... my next question is: is there a notification or delegate method
to know when the images are loaded? I tried using the -textDidChange:
delegate method, and using a timer to call -display on the text
view, but neither of those worked. I could store the attributed string
from the page and reload it later... but I don't know when the images
have loaded.
Any thoughts?
David
On Monday, Sep 23, 2002, at 00:26 US/Pacific, Scott Anguish wrote:
shouldn't the server automatically convert all the links to absolute
when you ask for the file?
anyways, since the HTMLfile has no knowledge of the base URL if the
HTML doesn't include it,, you could try using the
-initWithHTML:baseURL:documentAttributes: method and passing the
pageURL as the second parameter.
On Monday, September 23, 2002, at 02:32 AM, David Sinclair wrote:
I couldn't find an answer to this in the documentation and archives,
so here goes:
I'm loading a HTML page into a TextView. The page includes some
images using relative URLs, some with absolute. The absolute URL
images load and display fine, but the relative ones don't load.
Can anyone help me make the relative ones work, or is it not possible?
_______________________________________________
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.