Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are my images in my NSTableView faded out?

To start, there's an NSArrayController ("Servers") whose content is an array of "server" objects.

I also have an NSTableView with a column. The column is bound to Server's "arrangedObjects.status" property.

I use a custom NSValueConverter to make that status into an image for the column's dataCell which is an NSImageCell.

What I don't understand is why the images that show up in the column are correct, but consistently faded out. Just to test, I have the same image outside the table view for comparison and it draws fine. The colors in the images are not semi-transparent.

Does the NSImageCell draw the images as faded? Is there something I can configure in IB that will draw them fully saturated?

like image 636
Michael Bishop Avatar asked Dec 30 '09 07:12

Michael Bishop


2 Answers

From Jim Correia on Cocoa-Dev:

"On 10.6, NSImageView will draw its content as dimmed when the control is disabled.

Your binding has “Conditionally Sets Enabled” turned on."

like image 51
Michael Bishop Avatar answered Nov 08 '22 12:11

Michael Bishop


You might have the image view cell or column's "enabled" property set to NO (or unchecked in IB). I believe this fades the displayed image.

like image 44
Joshua Nozzi Avatar answered Nov 08 '22 11:11

Joshua Nozzi