NSTableView background erasing, how to stop ??
NSTableView background erasing, how to stop ??
- Subject: NSTableView background erasing, how to stop ??
- From: Robert Miller <email@hidden>
- Date: Thu, 17 Oct 2002 11:30:47 -0400
Hello,
Does anyone know if it is possible to turn off the background erasing
of an NSTableView when it is being drawn ? I've tried all sorts of
things like setting it's background to clearColor (ends up erasing to
black) , make it non-opaque, (seems to have no affect), setting the
data cell background color to clearColor (black again). calling
setDrawsBackground:NO (no affect), among other attempts. I have a table
that has many cells and I am trying to manage which cells get drawn at
a particular point in time. I only want to have to draw a cell if its
'state' has changed, ie. selected -> deselected and not incur the
overhead of drawing all the other cells needlessly. I've tried
overriding drawRect and drawing each row myself by calling
drawRow:cliprect, that seems to eliminate the overall erasure of the
table background but, calling drawRow: seems to erase the row rect
anyway. Is there an example somewhere of how to draw the individual
cells for a row ? Or, what's the trick to stopping background erasure ?
Am I missing something (most likely)...
Thanks for any help in advance.
Regards,
Bob M.
_______________________________________________
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.