rowAtPoint:
指定した位置にある行を番号で返します
-(int)rowAtPoint:(NSPoint)aPoint:
解説
指定した位置にある行を番号で返します。
テーブルの範囲外の位置を指定すると-1を返します。
返り値
( int )
整数値
引数
( NSPoint )aPoint
位置
フレームワーク
ApplicationKit
クラス
NSTableView
Instance Methods
使用可能
10.0
参照
- columnAtPoint:
例文
- (IBAction)myAction:(id)sender;// { NSLog([NSString stringWithFormat:@"%d",[table rowAtPoint:NSMakePoint(80,30)]]); }