Re: Handling a mouse event
Re: Handling a mouse event
- Subject: Re: Handling a mouse event
- From: Cameron Hayne <email@hidden>
- Date: Tue, 28 May 2002 18:36:34 -0400
zauhar <email@hidden> wrote:
I want to copy functionality in an old Mac OS application for handing
mouse events. The function I used timed how long the user held down the
mouse button - less than a specified interval and the event was treated
as a single click, and signaled a possible object selection - longer
than that interval and the mouse motion was tracked to control
interactive rotation.
One way to do it is via "Delayed Messaging" - see the MacTech article by
Mike Morton at
http://www.mactech.com/articles/mactech/Vol.14/14.12/DelayedMessaging/
This article talks about using the
performSelector:withObject:afterDelay: method for various things,
including mouse event handling.
... Cameron
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.