Re: Receiving Mouse Moved Events in Views
Re: Receiving Mouse Moved Events in Views
- Subject: Re: Receiving Mouse Moved Events in Views
- From: Seth Willits <email@hidden>
- Date: Sun, 28 Mar 2004 02:01:42 -0800
On Mar 28, 2004, at 12:04 AM, Alastair Houghton wrote:
I believe you'll find that you need to establish a tracking rectangle
before you get mouse move events.
Yup:
"NSViews automatically receive mouse-clicked and mouse-dragged events,
but 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 NSWindows setAcceptsMouseMovedEvents: method. Tracking
rectangles, described below, are a less expensive way of following the
mouses location."
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
REALbasic Guru at ResExcellence -
http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"100% Recycled Electrons"
-- Law of Thermal Dynamics
------------------------------------------------------------------------
---
_______________________________________________
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.