• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView - problem with drawing cell text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSTableView - problem with drawing cell text (From: Greg Casey <email@hidden>)

  • Prev by Date: Re: NSPopUpButton: items with same title
  • Next by Date: Re: NSPopUpButton: items with same title
  • Previous by thread: Re: NSTableView - problem with drawing cell text
  • Next by thread: slow text drawing
  • Index(es):
    • Date
    • Thread