Re: NSView doesnt receive mouseMoved events?
Re: NSView doesnt receive mouseMoved events?
- Subject: Re: NSView doesnt receive mouseMoved events?
- From: mw <email@hidden>
- Date: Fri, 24 Jan 2003 06:51:42 -0500
I'm not sure, but I think I had to deal with this too. You have to set up a
tracking rectangle (NSTrackingRect, I believe. It is a structure, not a
class) in the view which will report mouse events inside the tracking rect,
such as mouseEntered, mouseExited, mouseUp, mouseDown, mouseMoved, etc.
See Apple's docs on how to set up tracking rectangles in NSView subclasses.
mw
On 1/24/03 3:14 AM, "Sascha Kujawa" <email@hidden> wrote:
>
Heya,
>
>
I am trying to find out why my subclassed NSView does not receive
>
mouseMoved events. Others like mouseDown work fine.
>
>
Of course I told it's window setAcceptsMouseMovedEvents:YES
>
but my subclassed NSView still does not receive mouseMoved
>
events.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.