Re: NSTableView - problem with drawing cell text
Re: NSTableView - problem with drawing cell text
- Subject: Re: NSTableView - problem with drawing cell text
- From: "Rand Arnold" <email@hidden>
- Date: Fri, 21 Feb 2003 16:41:12 -0800
Thanks Greg,
I found another solution (at least in my case), I was adding the text
column on the fly, but I was not setting the NSCell and the NSFont in the
NSCell.
Once I did those, it now works great.
Rand
On or about: 2/21/03 at 16:55 -0500, Greg Casey wrote:
>
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
-----------
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.