FROM : Geoff Levner
DATE : Wed Apr 27 22:40:08 2005
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 setAcceptsMouseMovedEvents: 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.
DATE : Wed Apr 27 22:40:08 2005
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 setAcceptsMouseMovedEvents: 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.
| Related mails | Author | Date |
|---|---|---|
| Brian O'Brien | Apr 27, 22:32 | |
| Brian O'Brien | Apr 27, 22:39 | |
| Geoff Levner | Apr 27, 22:40 | |
| Brian O'Brien | Apr 27, 22:44 | |
| Clark Cox | Apr 27, 22:44 | |
| Brian O'Brien | Apr 27, 23:11 | |
| glenn andreas | Apr 27, 23:26 | |
| Brian O'Brien | Apr 27, 23:41 |






Cocoa mail archive

