I need some help why is not setting text and image to NsTableview cell in OS X development. Here is my demo code please help me out.
First this is my story board in that i have taken tablelist, and image& text Table cell view. Find the screen shot.
Now I am trying to setting the image and Textfield value of cell in NSTableview. And also my delegates are calling both here is my delegates code.
In NumberOfRowinTableView
{
return [self.arrayData count];
}
In objectValueForTableColumn:(nullable NSTableColumn *)tableColumn row:(NSInteger)row
{
NSTableCellView *cellView = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];
DataDoc *bugDoc = [self.arrayData objectAtIndex:row];
cellView.imageView.image = bugDoc.thumbImage;
cellView.textField.stringValue = bugDoc.data.title;
return cellView;
}
Also getting values from my array, here is my screenshot
And this values are not set in tableview cell and getting following output
I know it is very minor mistake, but not getting the where is the issue to set text and image to cell.