Search code examples
objective-ccocoamacosnstableviewnsarraycontroller

NSTableView's row number


I can't find a way to make a row to show the displayed row's number.

In fact I have an NSArrayController and an NSTableView whose columns are bound to the NSArrayController.

Now I have to show the row number (maybe index of the data in DataModel is fine) and I can't find a way to do this.

Any suggestions?


Solution

  • Check out this answer: Displaying row index in an NSTableView bound to NSArrayController