Re: Can I do something when double click on a button?
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.