• 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: Getting 'mouseMoved' events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting 'mouseMoved' events


  • Subject: Re: Getting 'mouseMoved' events
  • From: John Hörnkvist <email@hidden>
  • Date: Tue, 21 May 2002 10:09:31 +0200

On Tuesday, May 21, 2002, at 01:03 AM, James Pengra wrote:

I have an NSView in which I utilize mouseDown events and would also like to track the mouse cursor using mouseMoved events. I send the message [myWindow setAcceptsMouseMovedEvents:YES]; before looking for mouse movement, but the procedure -(void)mouseMoved:(NSEvent *)event never gets called. However, mouseDown gets called every time I click in the View.
What else must I do to to activate mouseMoved events?

mouseMovedEvents don't get sent unless you turn them on. NSWindow implements
- (void)setAcceptsMouseMovedEvents:(BOOL)flag;
- (BOOL)acceptsMouseMovedEvents;




Regards.
John Hornkvist
--
ToastedMarshmallow, need help?
http://www.toastedmarshmallow.com
_______________________________________________
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: 
 >Getting 'mouseMoved' events (From: James Pengra <email@hidden>)

  • Prev by Date: Re: some OS X architectural questions
  • Next by Date: Re: Authorization...?
  • Previous by thread: Getting 'mouseMoved' events
  • Next by thread: Re: Getting 'mouseMoved' events
  • Index(es):
    • Date
    • Thread