• 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
Re: Rollover Effect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rollover Effect


  • Subject: Re: Rollover Effect
  • From: email@hidden
  • Date: Mon, 29 Aug 2005 18:33:20 -0400

On Aug 29, 2005, at 6:00 AM, Philip Dow wrote:

This works, except that the tracking rectangles are flaky as hell. The mouseEntered: seems to register every time, but the mouseExited: misses a beat if I move the cursor too quickly over the view. The effect is a button that hangs. It continues to indicate the hover/rollover state after the mouse has passed through it.

You might want to try overriding the mouseMoved: event as well as a second checkpoint. I also found tracking rectangles pretty flaky, and instead set up something using [event locationInWindow] and then NSView's mouse:inRect: method. The only thing you have to be careful about there is converting the coordinates of the NSRect to the NSPoint's coordinate system, or vice versa.


Cameron

_______________________________________________
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


  • Follow-Ups:
    • Re: Rollover Effect
      • From: jkp <email@hidden>
References: 
 >Re: what happend of the .hidden file in Tiger? (From: Mason Mark <email@hidden>)
 >Re: what happend of the .hidden file in Tiger? (From: Finlay Dobbie <email@hidden>)
 >Re: what happend of the .hidden file in Tiger? (From: Mason Mark <email@hidden>)
 >Rollover Effect (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: Rollover Effect
  • Next by Date: Insensitive NSComboBox completion?
  • Previous by thread: Re: Rollover Effect
  • Next by thread: Re: Rollover Effect
  • Index(es):
    • Date
    • Thread