Re: manage double click
Re: manage double click
- Subject: Re: manage double click
- From: Anthony Duer <email@hidden>
- Date: Sun, 13 Oct 2002 02:07:00 -0700
Where can I find a sample code to manage double click ? I am looking
for something which will call a mouseDoubleDown:event method.
Or should I implement it by myself calculating the difference of time
between two successive call to mouseDown...
It's pretty simple...
-(void)mouseDown:(NSEvent *)event
{
int i = [event clickCount];
if(2==i)
{
[self twoClicksOccured];
}
}
~Anthony Duer
Orion Project
_______________________________________________
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.