• 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: 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.

  • Follow-Ups:
    • Re: NSTableView - problem with drawing cell text
      • From: "Rand Arnold" <email@hidden>
References: 
 >NSTableView - problem with drawing cell text (From: "Rand Arnold" <email@hidden>)

  • Prev by Date: How to assign NSCell type for NSTableColumn's data cell via IB?
  • Next by Date: Re: http://127.0.0.1 in Safari goes to nameserver?
  • Previous by thread: NSTableView - problem with drawing cell text
  • Next by thread: Re: NSTableView - problem with drawing cell text
  • Index(es):
    • Date
    • Thread