NSTextView HTML Image Display
NSTextView HTML Image Display
- Subject: NSTextView HTML Image Display
- From: "Steven W. Schuldt" <email@hidden>
- Date: Mon, 15 Jul 2002 20:07:47 -0700
All,
I have what seems to be a trivial problem that is turning out to be
a pain. In fact, this has been asked here before but never
satisfactorily answered, so here goes again with my spin on it:
I want to display a block of HTML in an NSTextView. There are
images referenced in the HTML. I can do this easily, no problem, but in
order to see images -- and not gray blocks -- I need to do something
manually to refresh the TextView like resize it's window. One only need
do this once per session and then the images are cached and life is good.
Yes I am registered as a delegate and track the relevant
notifications (specifically 'HTMLDocumentChangedNotification') but
beating on the window with 'display' and 'flushWindow' and
'setNeedsDisplay:YES' on my TextView when notified do absolutely nothing
(other than generate 'drawWithOuterFrame:contentFrame:clipping: called
on cell which has not yet measured!' warnings).
My questions are: what is so staggeringly magical about the act of
resizing a window, and how can this magic be best simulated so I can see
the images in my HTML the moment they hit the cache and move on? Thanks!
- Steven
_______________________________________________
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.