Handling custom selection style in view based NSTableView

后端 未结 2 2020
孤城傲影
孤城傲影 2020-12-18 08:42

How do I go about drawing my own custom selection style for a view based NSTableView? I tried putting a BOOL var in my NSTableCellView

2条回答
  •  醉酒成梦
    2020-12-18 09:12

    To make things clear, I think we should give the code of the delegate method :

    - (NSTableRowView *)tableView:(NSTableView *)tableView rowViewForRow:(NSInteger)row
    {
       MyNSTableRowView *rowView = [[MyNSTableRowView alloc]init];
       return rowView;
    }
    

提交回复
热议问题