xcode - How to get NSTextFieldCell StringValue from NSTableView in cocoa -
i'm developing nstableview (cell based) app based in xcode5 , want each nstextfieldcell's cell determining row's height code far
- (cgfloat)tableview:(nstableview *)tableview heightofrow:(nsinteger)row{ if (tableview == _tableview) { nstablecolumn *column = [_tableview tablecolumnwithidentifier:@"consecutivo"]; nstextfieldcell *cell = [column datacellforrow:row]; nsinteger occurences = [functions findoccurencesoftext:@"\n" inwholetext:cell.stringvalue]; if (occurences > 0) { return occurences * 17; } else { return 17; } } else { return 17; } }
but cant string's cell value
even if put
nslog(@"text: %@", cell.stringvalue);
all is
text:
any i'll appreciate
Comments
Post a Comment