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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -