objective c - NSTextField dynimic height in NSTableView -
there nstextfield in nstableview. the height of text in window resizing increased. not grow cells in table view. in case, height of table view cell alter how like? in short, when resizing size of text view, want change size of cell. like this: (mac store) - (cgfloat)tableview:(nstableview *)tableview heightofrow:(nsinteger)row; { kfcustomcellview *cellview = [tableview makeviewwithidentifier:@"maincell" owner:self]; nsstring *comment = [[_commentlist objectatindex:row]valueforkey:@"comment"]; [cellview.comment setstringvalue:comment]; float cellheight = [comment heightforstringdrawing:comment font:[cellview.comment font] width:self.view.frame.size.width * 0.8]; if (cellheight > cellview.comment.frame.size.height) { return (cellheight + 65); } return 90; } use following approach resize cell height according textview content : - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowati...