Using -mouseEntered/Exited in a tab view
Using -mouseEntered/Exited in a tab view
- Subject: Using -mouseEntered/Exited in a tab view
- From: Darrin Cardani <email@hidden>
- Date: Thu, 23 Jun 2005 11:16:09 -0500
I have a rollover button class in which I use the view's
-mouseEntered: and -mouseExited: methods to update the look of the
button. I've implemented a -viewDidMoveToWindow; method, which adds a
tracking rect for the button. This works fine most of the time. What
I'm finding, however, is that if the button is in a tab view, it
doesn't work the very first time it's displayed.
My viewDidMoveToWindow method is called, and it creates what appears
to be a valid tracking rect (that is,
[-addTrackingRect:owner:userData:assumeInside:] returns a non-zero
value), but the button doesn't respond to being rolled over. However,
if I switch to another tab, then switch back, it works from there on
out.
So what can I do to make it work the very first time the user selects
the tab that contains it?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden