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: Sat, 19 Apr 2014 02:30:24 -0400
invalidateShadow: was a nice idea; just tried it and it didn't help.
I only add the toolbar once; after that it's toggling visibility status.
I'm just initially adding the toolbar programmatically instead of in the
nib because I ran into some problems doing that in my Cocoa/Carbon hybrid
app.
Once I get the entire app ported to Cocoa, I expect to be able to switch to
having my toolbar in the nib, but trying to test when parts of the window
content can't be clicked is tricky in the meantime. :)
Eric Shepherd
Gmail: email@hidden
Twitter: sheppy
On Sat, Apr 19, 2014 at 2:20 AM, Ken Thomases <email@hidden> wrote:
> 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