Re: Getting NSView mousedown event postion?
Re: Getting NSView mousedown event postion?
- Subject: Re: Getting NSView mousedown event postion?
- From: Andy Lee <email@hidden>
- Date: Tue, 10 Sep 2002 14:54:00 -0400
At 6:49 PM +0200 9/10/02, Aidas Dailide wrote:
Hi,
How could i get mouse down event position in NSView? NSEvents
locationInWindow function doesn't help because it get's position in
window, not in NSView.
How about:
NSPoint locationInView =
[myView convertPoint:[theEvent locationInWindow]
fromView:[[myView window] contentView]];
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.