• 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: mouseMoved in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouseMoved in NSTextView


  • Subject: Re: mouseMoved in NSTextView
  • From: Dominik Pich <email@hidden>
  • Date: Sun, 4 Feb 2007 12:43:55 +0100

Try setting up a tracking rectangle for the area you want to get messages for.
Dominik


Am Feb 4, 2007 um 4:09 AM schrieb Dimitri Bouniol:

In a subclass of NSTextView, I have a mouseMoved: method.
I would like to get the mouse moved events all the time, but I currently only get them when the NSTextView is the first responder. How can I constantly get mouseMoved events even if the view is not a first responder?
I already tried setting setAcceptsMouseMovedEvents:YES on the window, but that created an undesirable effect where the method would get called even if the cursor was not on the view (like above it when the text view is scrolled)


Can anyone help me out?
--
Dimitri Bouniol
email@hidden
http://web.mac.com/dimitri008/


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >mouseMoved in NSTextView (From: Dimitri Bouniol <email@hidden>)

  • Prev by Date: Re: Discovering the default gateway address
  • Next by Date: Event handling question
  • Previous by thread: mouseMoved in NSTextView
  • Next by thread: Strange Crash
  • Index(es):
    • Date
    • Thread