Populate Table View with Icon based on a boolean value

Hi all,

I have an array. One column of this array contains a boolean value.
The array populate the data source.
I would like to obtain an icon where I have true value.
How I can do this?

Alex

Hi,

you can probably do it with the will display cell event handler

Hi Stefan,

thanks for the input. I use ASS.
But when I attach ImageCell to the column my table view don’t work anymore.
In console I find NSImageCell’s object value must be an NSImage.
Any input?

Alex

Hi Stefan,

“Will display cell” update table view every time you move the cursor on it, slowing down the process.
It’s not usable for data source with more than 50/100 records (I think)
What I search is to calculate on the fly, only first time, when the data source is populated, a cell image based on value of another cell.
Example: if the cell (field of records array that populate the data source) is true show the icon “green” otherwise show the icon “red”.
My Data Source is loaded only when user press a button.
Any help?

Alex and Steve