• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using -mouseEntered/Exited in a tab view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Disturbing Control Problem in Tiger
  • Next by Date: Re: Relying on shell tools to be installed? Where do you find this out?
  • Previous by thread: Re: Disturbing Control Problem in Tiger [Solved]
  • Next by thread: Video Problems With QTMovieView
  • Index(es):
    • Date
    • Thread