Re: Strange toolbar/view/resize cursor interaction
Re: Strange toolbar/view/resize cursor interaction
- Subject: Re: Strange toolbar/view/resize cursor interaction
- From: Ken Thomases <email@hidden>
- Date: Sat, 19 Apr 2014 01:20:53 -0500
On Apr 19, 2014, at 12:52 AM, Eric Shepherd wrote:
> On Thu, Apr 17, 2014 at 8:55 AM, Eric Shepherd <email@hidden> wrote:
>
>> I'm having an odd problem with my Mac OS X application here. I have a
>> window containing an NSOpenGLView, into which I programmatically insert a
>> toolbar when the window is opened.
>>
>> Upon doing so, I find that as I move the mouse down through my window, it
>> turns into the "resize cursor" quite some distance above the bottom edge of
>> the window, and the cursor's hotspot jumps abruptly to that bottom edge of
>> the window.
>>
>> It appears that the distance of this jump is the same as the height of the
>> toolbar, and toggling the toolbar off clears the problem up (while off, the
>> cursor acts correctly, turning into the resize cursor at the edge of the
>> window, and once the toolbar is on again, the cursor also behaves properly).
> Still stumped by this one. I've read about every method that has "resize"
> or "toolbar" in its name, among others, without finding anything. :)
This is a bit of a long shot, but try invoking -[NSWindow invalidateShadow] after adding the toolbar.
Also, is there a reason you're adding and removing the toolbar rather than toggling its visibility using -toggleToolbarShown:?
Regards,
Ken
_______________________________________________
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