• 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: why mouseMoved doesn't work...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: why mouseMoved doesn't work... (From: Ando Sonenblick <email@hidden>)

  • Prev by Date: partly connected nibs?
  • Next by Date: Re: is protected broken, or am I?
  • Previous by thread: Re: why mouseMoved doesn't work...
  • Next by thread: RE: why mouseMoved doesn't work...
  • Index(es):
    • Date
    • Thread