• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: manage double click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: How to add an array to a dictionary.....
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: manage double click
  • Next by thread: Displaying different languages in an NSTableView
  • Index(es):
    • Date
    • Thread