mouseLocation
スクリーン座標で、現在のマウス位置を返します
解説
スクリーン座標で、現在のマウス位置を返します。
返り値
( NSPoint )
マウス位置
引数
フレームワーク
ApplicationKit
クラス
NSEvent
Class Methods
使用可能
10.0
参照
例文
#import "MyScrollView.h" @implementation MyScrollView - (void)mouseDown:(NSEvent *)event { NSLog([NSString stringWithFormat:@"global x=%.1f,y=%.1f",[NSEvent mouseLocation].x,[NSEvent mouseLocation].y]); } @end