Re: mouseMoved problems
Re: mouseMoved problems
- Subject: Re: mouseMoved problems
- From: John Saccente <email@hidden>
- Date: Thu, 21 Mar 2002 13:41:35 -0600
You have to "ask" to receive mouse moved messages. There's a nice
little mouse event handling example at
<
http://www.mmalc.com/examples/MouseTracker.gnutar.gz>
John Saccente
email@hidden
On Thursday, March 21, 2002, at 01:04 PM, Chris Meyer wrote:
Hi,
I have a custom view derived from NSView and I am trying to get
mouseMoved events but I don't get any. I think I have set everything up
properly. The following methods are defined in my custom view and when
I click the mouse it prints out "YES" in the log window. I get the
mouseDragged events just fine. But I never get a mouseMoved event.
Is someone out there successfully using mouseMoved events? Or are there
any bugs with it anyone knows about? Does it look like I'm doing
something obviously wrong?
I'm using 10.1.3 (5Q45) with Dec 2001 tools.
Thanks for any help,
Chris
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog( [[self window] acceptsMouseMovedEvents] ? @"YES" : @"NO" );
}
- (void)mouseDragged:(NSEvent *)theEvent
{
NSLog( @"mouseDragged" );
}
- (void)mouseMoved:(NSEvent *)theEvent
{
NSLog( @"mouseMoved" );
}
_______________________________________________
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.
_______________________________________________
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.