• 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: Can I do something when double click on a button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I do something when double click on a button?


  • Subject: Re: Can I do something when double click on a button?
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 10 Apr 2002 01:59:20 +0200

On Wednesday, April 10, 2002, at 12:35 , email@hidden wrote:

I hope I can do different thing when click and double click a button. As Windows have double-click action, why Mac can't do?

So as the Mac OS X GUI is not such a terrible mess as Windows one is, perhaps?

If you *do* want that, I guess you'd need to DIY: store the time of each click, and check whether the next click came soon enough (to be considered a doubleclick). In Cocoa, you'd need something like three, perhaps five, ObjC lines for that, I guess.

Even so and again I would strongly discommend that.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.

  • Follow-Ups:
    • Re: Can I do something when double click on a button?
      • From: Nicholas Riley <email@hidden>
References: 
 >Re: Can I do something when double click on a button? (From: email@hidden)

  • Prev by Date: Re: Can I do something when double click on a button?
  • Next by Date: The right way to put a JPEG, PNG, GIF, etc. onto the pasteboard
  • Previous by thread: Re: Can I do something when double click on a button?
  • Next by thread: Re: Can I do something when double click on a button?
  • Index(es):
    • Date
    • Thread