开发者

indexes of NSTableView rows

I sink index of first row in tableview is '0' it is Correct?

If yes, HOW can I make so index of first row in tableview become '1' ?

this is need because my DataSourse start from '1', and I need that:

[myTableView selectedRow] = [myData ro开发者_如何学Cw] but no [myTableView selectedRow] = [myData (row-1)]


Indexes in programming almost always start at 0, and the NSTableView is no exception. There is no way to change that so you always have to subtract or add 1 from the index as needed, I'm afraid.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜