• 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
Receiving mouseEnter and mouseExit events.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Receiving mouseEnter and mouseExit events.


  • Subject: Receiving mouseEnter and mouseExit events.
  • From: David Alter <email@hidden>
  • Date: Tue, 19 Aug 2008 12:04:47 -0700

I'm a little confused on the mouse tracking. I have a view and I want to track when the mouse enters and exits it. If I set setAcceptsMouseMovedEvents to true for my window, (void)mouseMoved: (NSEvent *)theEvent will get called. But, - (void)mouseEntered: (NSEvent *)theEvent and - (void)mouseExited:(NSEvent *)theEvent will not. Am I correct in my understanding that I need to create a NSTrackingArea for these events to get called?

thanks for the help
Dave



_______________________________________________

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


  • Follow-Ups:
    • Re: Receiving mouseEnter and mouseExit events.
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: How to reference a NSDocument from a NSView?
  • Next by Date: Re: Receiving mouseEnter and mouseExit events.
  • Previous by thread: Re: Best Way to Handle Properties?
  • Next by thread: Re: Receiving mouseEnter and mouseExit events.
  • Index(es):
    • Date
    • Thread