How to know how many rows and columns are selected in a NSMatrix ? I tried many things but it does not work.
I thought about first getting the selected cells by calling selectedCells
method of NSMatrix
but then I don't know what to do. I should save somewhere in each cell instance its position (row/col) inside the NSMatrix
? Is there another solution?
You can find out how many are selected by doing this:
Where
myMatrix
is yourNSMatrix
instance.