Re: Strange toolbar/view/resize cursor interaction
Re: Strange toolbar/view/resize cursor interaction
- Subject: Re: Strange toolbar/view/resize cursor interaction
- From: Quincey Morris <email@hidden>
- Date: Mon, 21 Apr 2014 16:56:47 -0700
On Apr 21, 2014, at 16:46 , Eric Shepherd <email@hidden> wrote:
> where = [self convertPoint:where fromView:nil]; // Convert to the view's frame of reference
>
> NSLog(@"Mouse Y: %3.0f", where.y);
And ‘self’ is the NSOpenGLView, yes? It sounds like your view’s bounds origin has been moved by the height of the toolbar. Perhaps what you *should* be logging (and using) is ‘where.y - self.bounds.origin.y’ — or something similar if the coordinates aren’t flipped.
_______________________________________________
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