• 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: acceptsMouseMovedEvents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: acceptsMouseMovedEvents?


  • Subject: Re: acceptsMouseMovedEvents?
  • From: Geoff Levner <email@hidden>
  • Date: Wed, 27 Apr 2005 22:40:08 +0200

From the Cocoa documentation:

"...because mouse-moved events occur so often and can bog down the event queue, an NSView must explicitly request its NSWindow to watch for them using NSWindow’s
<x-tad-bigger>setAcceptsMouseMovedEvents:</x-tad-bigger> method. Tracking rectangles, described below, are a less expensive way of following the mouse’s location."

For more, see: ADC Home > Reference Library > Documentation > Cocoa > Events & Other Input > Basic Event Handling

and specifically the article entitled "Handling Mouse Events in Views".

Gfff

On 27 Apr 2005, at 22:32, Brian O'Brien wrote:

In my subclass of NSImageView I want to receive mouse move events.
I defined the method acceptsMouseMovedEvents and returned true.
I also defined the method - (void)mouseMoved:(NSEvent *)theEvent
and put an NSLog message in that function. However I get no mouse
motion events.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >acceptsMouseMovedEvents? (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: [OT] WWDC hotels for car-less people?
  • Next by Date: Re: acceptsMouseMovedEvents?
  • Previous by thread: Re: acceptsMouseMovedEvents?
  • Next by thread: Changing content object (class) for NSObjectController
  • Index(es):
    • Date
    • Thread