Re: mouseMoved in NSTextView
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