Re: Strange toolbar/view/resize cursor interaction
Re: Strange toolbar/view/resize cursor interaction
- Subject: Re: Strange toolbar/view/resize cursor interaction
- From: Eric Shepherd <email@hidden>
- Date: Mon, 21 Apr 2014 18:23:45 -0400
I think this is the problem. I added code to dump the Y-coordinate of my
mouse while I move it around in the NSOpenGLView, and sure enough, it's
reaching the value that should be the bottom edge well above the bottom.
The same happens at the top, where the mouse reaches the edge of the view
but the Y value is not what it should be at the edge.
Is there a responsible way to get the current height of the toolbar so I
can use that to adjust the calculations here?
Eric Shepherd
Gmail: email@hidden
Twitter: sheppy
On Mon, Apr 21, 2014 at 3:43 AM, Quincey Morris <
email@hidden> wrote:
> On Apr 20, 2014, at 23:53 , Graham Cox <email@hidden> wrote:
>
> The toolbar view is actually added as a PEER of the window's content view,
> and the content view is resized to accommodate the toolbar when it is shown
> or hidden.
>
>
> That sounds correct, but IIRC the methods that convert between a window’s
> content size and its frame size don’t take the toolbar into account, which
> means that they work with a "content size” that isn’t actually the content
> *view* size, and correcting the calculation requires the assumption of
> extrinsic information. It strikes me as plausible that an OpenGL view might
> need to make such a conversion, and that it was never implemented to deal
> with the presence of a toolbar.
>
>
_______________________________________________
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