I am referring to this example code. I am trying to display image in the first column at where lastName is displaying, but unfortunately I can't.
Asked
Active
Viewed 162 times
1 Answers
0
I think you can do it in two ways-
The data-source - peopleList array contains dictionary which does not have any NSImage object. You can try adding a NSImage object to the dictionary and then display it through bindings.
You can use - tableView:willDisplayCell:forTableColumn:row: in NSTableViewDelegate and for the lastName tablecolumn identifier, set appropriate image to the cell.
Also, since you are a beginner, I would like to refer a simpler example to you : http://dl.dropbox.com/u/9999259/SimpleTable.zip
Hope this helps !

Devarshi
- 16,440
- 13
- 72
- 125
-
Thanks for helping Miraaj.. And yes i am new to this.. so can u please explain these two ways in detail via some code..? that would be very big help for me..!! – iUser Sep 22 '11 at 09:57