NSEvent mouse events
NSEvent mouse events
- Subject: NSEvent mouse events
- From: Greg Hulands <email@hidden>
- Date: Wed, 9 Oct 2002 12:19:17 +1000
Hi,
I have a custom view that handles the mouse down event. I am trying to
get it so that if the mouse is down for 2 seconds, than it will perform
an action.
I wait for these mouse events
nextEventMatchingMask:(NSLeftMouseDownMask | NSLeftMouseUpMask |
NSLeftMouseDraggedMask | NSOtherMouseUpMask | NSOtherMouseDownMask),
but the problem seems to be that when I hold down the mouse, without
moving the mouse at all, it does not generate any more events. As soon
as i move the cursor slightly, it then fires the action. Is there a way
of getting a continuous stream of events while the mouse is down? Or is
there a better solution to this problem?
Any help is greatly appreciated,
Regards,
Greg
_______________________________________________
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.