Re: NSTableView - problem with drawing cell text
Re: NSTableView - problem with drawing cell text
- Subject: Re: NSTableView - problem with drawing cell text
- From: Greg Casey <email@hidden>
- Date: Fri, 21 Feb 2003 16:55:54 -0500
Rand,
I've had this happen to me on occasion, too. What's happening is that
the NSCells being used when drawing the table are drawing their
background and blocking out your table background. (Why this only
starts happening randomly, I do not know).
What you need to do to assure that it definitely stops happening is
something like this in your "awakeFromNib" or "windowDidLoad" method:
e = [[myTable tableColumns] objectEnumerator];
while (tableColumn = [e nextObject]) {
[[tableColumn dataCell] setDrawsBackground: NO];
}
Hope this helps!
-gtc
On Friday, February 21, 2003, at 03:37 PM, Rand Arnold wrote:
I have a customized NSTableView (I overrode the headers, and background
drawing) that has one column of text and multiple graphics columns.
I have modified the table to draw the rows in alternate colors (code
from
TableTester). However when the text is drawn the cell is erased to
white
(although when hilighted the cell draws properly), this does not happen
with my graphics cells.
After I set up the alternating row colors, the table was drawing
properly
(or at least as I expected it to), but then later the problem cropped
up.
Anybody have any idea why this might be happening? I'm not doing the
drawing, so I don't think it is anything that I'm doing directly.
Thanks,
Rand
-----------
Rand Arnold
email@hidden
_______________________________________________
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.
-gtc
_______________________________________________
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.