I have an NSTableView
with two columns, First of them(With text cells) get it data through an NSArrayController.arrangedObjects.someKey
bound to a Core Data entity. All is OK.
But second column is NSLevelIndicatorCell
(Level Indocator Cell in IB's Object Library).
I set maximum value through an NSArrayController
(someKey.@count).
And now want set the current value when some function run.
upd: Also I know how set current value in "tableView:willDisplayCell:forTableColumn:row:" delegate method. But this is not enough. How update current value of second column in some function? Send tableView's pointer(or rowPointer) to this Function, finding the required cell's pointer and use SetValue: method?
What is the alternative for tableView:objectValueForTableColumn:row:
?
I do not want to change Entity and create any new numerical attributes like "the maximum number of subsections" or "total downloaded and processed at the moment."
The question: How do I make the tableview use its existing binding and set current value of NSLevelIndicatorCell?