• 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 and background color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView and background color


  • Subject: NSTableView and background color
  • From: jeff ganyard <email@hidden>
  • Date: Wed, 22 Feb 2006 07:44:25 -0800

After reading a recent response from Corbin regarding table views with non-selectable rows (feb 20), where he suggests returning nil for the highlight color, I tried setting the background color of a tableview to nil. I wanted to try and draw the tableview over something irregular.

When I set the background color to nil the row highlight behavior gets wonky, yes official term: wonky. Try it, you'll see what I mean. :) Basically once a row is highlighted it remains highlight regardless of change in selection. At first it look like the tableview was allowing multiple selections (which is not turned on in IB) but it appears to just be more of an display update problem.

How do I fix this? I do still want a highlight on the rows but when the selection changes I want previous highlights to disappear.

On a related note, if I set the tableviews background color to something with alpha < 1, the region under the table does not display what should be under the table in the parent view (i.e. the window background) instead it clips the region under the table showing whatever is below the containing window. (does that make sense?)

Trying to restate more clearly, set the tableview background to a color with an alpha of 0 and you see right thru the table view and thru the window that contains it. It's an interesting effect but not desired. I would expect that you would see through the tableview and just see the background of the containing view or window.

bugs or are my expectations incorrect?

tia,
  jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableView and background color
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: CFPrefDockItems sample code. Where did it go?
  • Next by Date: Re: Core Data: updating a key dependent on a to-many relationship?
  • Previous by thread: Re: Retain Release functionality in C++ library
  • Next by thread: Re: NSTableView and background color
  • Index(es):
    • Date
    • Thread