locationInWindow
ウインドウのどこでイベントが起こったのかをNSPointで返します
解説
ウインドウのどこでイベントが起こったのかをNSPointで返します。
返り値
( NSPoint )
イベントが起こった位置
引数
フレームワーク
ApplicationKit
クラス
NSEvent
Instance Methods
使用可能
10.0
参照
例文
//mouseDownメソッドを持つクラスをオーバーライドする - (void)mouseDown:(NSEvent *)event { NSPoint eventLocation = [event locationInWindow]; }