• 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 cell's drawing backgrounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView cell's drawing backgrounds


  • Subject: Re: NSTableView cell's drawing backgrounds
  • From: j o a r <email@hidden>
  • Date: Sat, 12 Oct 2002 12:16:25 +0200

You can fix this by specifying a plain text cell type for the column in question, something like this:

- (void) awakeFromNib
{
[tableColumn setDataCell: [[[NSCell alloc] initTextCell: @""] autorelease]];
}

I think, but I'm not sure, that Apple sometimes use some custom cell type for the table view - perhaps for the resizable columns - that always paints a white background before drawing.

j o a r

On Saturday, Oct 12, 2002, at 11:51 Europe/Stockholm, Phillip Hutchings wrote:

The problem is that, while the first two columns draw the background normally, the 3 new columns are drawing solid white backgrounds on the cells, and the blue stripes are showing through where the grid would be. I've confirmed the problem by setting the table's background in InterfaceBuilder, the first two columns are solid colour (in this case peach), but the new 3 look like they have a peach grid on.
_______________________________________________
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 cell's drawing backgrounds
      • From: Dan Wood <email@hidden>
    • Themed colors, was NSTableView cell's drawing backgrounds
      • From: Glenn Howes <email@hidden>
References: 
 >NSTableView cell's drawing backgrounds (From: Phillip Hutchings <email@hidden>)

  • Prev by Date: Re: cascading documents
  • Next by Date: Re: NSView drawRect: QuickDraw, CoreGraphics, OpenGL ?
  • Previous by thread: NSTableView cell's drawing backgrounds
  • Next by thread: Themed colors, was NSTableView cell's drawing backgrounds
  • Index(es):
    • Date
    • Thread