• 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
NSTableView background erasing, how to stop ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView background erasing, how to stop ??


  • Subject: NSTableView background erasing, how to stop ??
  • From: Robert Miller <email@hidden>
  • Date: Thu, 17 Oct 2002 11:30:47 -0400

Hello,

Does anyone know if it is possible to turn off the background erasing of an NSTableView when it is being drawn ? I've tried all sorts of things like setting it's background to clearColor (ends up erasing to black) , make it non-opaque, (seems to have no affect), setting the data cell background color to clearColor (black again). calling setDrawsBackground:NO (no affect), among other attempts. I have a table that has many cells and I am trying to manage which cells get drawn at a particular point in time. I only want to have to draw a cell if its 'state' has changed, ie. selected -> deselected and not incur the overhead of drawing all the other cells needlessly. I've tried overriding drawRect and drawing each row myself by calling drawRow:cliprect, that seems to eliminate the overall erasure of the table background but, calling drawRow: seems to erase the row rect anyway. Is there an example somewhere of how to draw the individual cells for a row ? Or, what's the trick to stopping background erasure ? Am I missing something (most likely)...

Thanks for any help in advance.
Regards,
Bob M.
_______________________________________________
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.

  • Prev by Date: Re:NSSplitView query
  • Next by Date: Creating an NSDictionary out of NSData?
  • Previous by thread: NSImageView & scroll
  • Next by thread: Creating an NSDictionary out of NSData?
  • Index(es):
    • Date
    • Thread