NSEvent:locationInWindow
Home 目次>ApplicationKit>NSEvent

locationInWindow

ウインドウのどこでイベントが起こったのかをNSPointで返します


-(NSPoint) locationInWindow


【返り値】
   NSPointイベントが起こった位置


【解説】

ウインドウのどこでイベントが起こったのかをNSPointで返します。



【例文】


//mouseDownメソッドを持つクラスをオーバーライドする
- (void)mouseDown:(NSEvent *)event {
NSPoint eventLocation = [event locationInWindow];
}


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSEvent
修正日2006.12.26