Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSMatrix で選択されている行と列の数を知る方法は? 私は多くのことを試しましたが、うまくいきません。
selectedCells最初にメソッドを呼び出して選択したセルを取得することを考えましNSMatrixたが、どうすればよいかわかりません。各セル インスタンスのどこかにその位置 (行/列) を保存する必要がありNSMatrixます。別の解決策はありますか?
selectedCells
NSMatrix
これを行うと、選択された数を確認できます。
NSArray *selectedArray = [myMatrix selectedCells]; NSUInteger selectedNum = [selectedArray count];
インスタンスはどこmyMatrixにありますか。NSMatrix
myMatrix