Invalidating Rects for redraw
Invalidating Rects for redraw
- Subject: Invalidating Rects for redraw
- From: Richard Schreyer <email@hidden>
- Date: Tue, 23 Jul 2002 14:41:51 -0700
I'm having a problem with redrawing too much when rolling over
JavaScript links in Chimera.
It seems that when you roll over a link, the area of that link is marked
for redraw (highlight color, whatever...), and the progress text in the
lower left is also marked for redraw (to display the new URL).
The problem is that Cocoa appears to be unioning these rects, meaning
that much more is being redrawn than needs to be. If you roll over a
link near the top of a page, almost the entire page needs to be redrawn.
See:
http://homepage.mac.com/frogblast/chimera_redraw.png
The highlighted area is what redraws if you rollover the "click for
indexes" link, when all that is needed is the area of the link alone +
the progress text. They are in two entirely separate NSViews, so they
really don't have to draw at the same time.
Is there some way I can get Cocoa to draw these two areas separately,
without having to completely work around the entire cocoa redraw system?
Richard Schreyer
_______________________________________________
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.