Re: why mouseMoved doesn't work...
Re: why mouseMoved doesn't work...
- Subject: Re: why mouseMoved doesn't work...
- From: John Nestor <email@hidden>
- Date: Fri, 11 Oct 2002 01:21:15 -0400
Where are you creating the tracking rect? I had a problem a while back
that sounds like yours. I was creating the tracking rect in the init of
the view. Someone suggested moving this operation to
-(void)awakeFromNib. That fixed it fot me.
Apparently the nib needs to open for the system to recognize the
creation of the tracking rect.
HTH
Ando Sonenblick wrote:
>
John,
>
>
I'm pretty sure you have to be the first responder to receive mouseMoved
>
events... AND the mouse has to be over your view...
>
>
Ando
>
>
>
>
>Hi folks I have a problem connected with the use of mouseMoved events...
>
>
>
>I set a tracking area and it works great with:
>
>-(void)mouseEntered:(NSEvent*)event
>
>-(void)mouseExited:(NSEvent*)event
>
>
>
>But the:
>
>- (void)mouseMoved:(NSEvent *)theEvent
>
>
>
>it doesn't work... the method seems not even to be called... I miss
>
>something somewhere I guess. Can you tell me what I do wrong here?
>
>
>
>thanks,
>
>John
>
>_______________________________________________
>
>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.
_______________________________________________
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.