On Apr 21, 2014, at 16:46 , Eric Shepherd <the.she...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to