Skip navigation.
 
mlRe: Substitute a check box or a popup for a field editor in a tableview
FROM : Kyle Sluder
DATE : Sat Jan 19 18:51:52 2008

On Jan 19, 2008 12:46 PM, comcast <<email_removed>> wrote:
> Great, It would be better to have the appropriate cell type show directly in
> my table.  I made -tableView:dataCellForTableColumn:row in my table's
> delegate, but it is not called.  I am not finding a lot of documentation or
> examples on this. Any suggestions.


Be aware that this is a Leopard-only delegate method; Tiger and below
simply won't call it.  The more portable option is to subclass
NSTableColumn and override -dataCellForRow:.

> Given I can get it called can this be done selectively for given rows or
> columns and use tableView:tableView objectValueForTableColumn:row for those
> that are text.


Just return an NSTextFieldCell for those cells whose data demands a text cell.

--Kyle Sluder

Related mailsAuthorDate
mlSubstitute a check box or a popup for as a field editor in a tableview comcast Jan 19, 15:11
mlRe: Substitute a check box or a popup for as a field editor in a tableview Kyle Sluder Jan 19, 15:56
mlRe: Substitute a check box or a popup for a field editor in a tableview comcast Jan 19, 18:46
mlRe: Substitute a check box or a popup for a field editor in a tableview Kyle Sluder Jan 19, 18:51