Re: Tracking NSPoint in flipped superview
Re: Tracking NSPoint in flipped superview
- Subject: Re: Tracking NSPoint in flipped superview
- From: Graham Cox <email@hidden>
- Date: Wed, 24 Feb 2010 21:16:00 +1100
On 24/02/2010, at 9:12 PM, Nikhil Khandelwal wrote:
> I have override a mouseDown event. Now I am trying to locate the [theEvent locationInWindow] points in the superview which is flipped. So this is giving me just opposite NSpoint so is there any method to flip the points or to check for points in particular view.
Have you tried simply asking the superview to work it out for you?
NSPoint localPt = [theSuperview convertPoint:[theEvent locationInWindow] fromView:nil];
--Graham_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden